HSL(54, 89%, 7%)

Very Dark Yellow — Yellow color

Adjust Color

Color Information

Color Name

Very Dark Yellow

Color Family

Yellow

Warm / Cool

🔴 Warm

Temperature

2700K

CSS Class

bg-[hsl(54,89%,7%)]

Color Conversions

Format Value CSS Usage
HSL hsl(54, 89%, 7%) color: hsl(54, 89%, 7%)
HEX #221F02 color: #221F02
RGB rgb(34, 31, 2) color: rgb(34, 31, 2)
CMYK cmyk(0%, 9%, 94%, 87%)
HSV hsv(54, 94%, 13%)
HWB hwb(54 1% 87%) color: hwb(54 1% 87%)
OKLCH oklch(0.2355 0.0465 103.83) color: oklch(0.2355 0.0465 103.83)
Lab lab(11.45 -3.16 16.13) color: lab(11.45 -3.16 16.13)
LCH lch(11.45 16.44 101.08) color: lch(11.45 16.44 101.08)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 16.6:1
vs Black 1.26:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#212109 — rgb(33, 33, 9)

Deuteranopia (Green-blind)

#21210B — rgb(33, 33, 11)

Tritanopia (Blue-blind)

#220F10 — rgb(34, 15, 16)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(54, 89%, 7%);

text

color: hsl(54, 89%, 7%);

border

border: 2px solid hsl(54, 89%, 7%);

gradient light

background: linear-gradient(to right, hsl(54, 89%, 27%), hsl(54, 89%, 7%));

gradient dark

background: linear-gradient(to right, hsl(54, 89%, 7%), hsl(54, 89%, 0%))

hex

background-color: #221F02;

tailwind

bg-[hsl(54,89%,7%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(54, 89%, 7%, 0.4);

css variable

--color-primary: hsl(54, 89%, 7%);

Related Colors

Use Cases for Very Dark Yellow

Warnings Highlights Attention indicators Optimistic brands Note/sticky elements

Frequently Asked Questions

What are all the color codes for HSL(54, 89%, 7%)?

HEX: #221F02 | RGB: rgb(34, 31, 2) | CMYK: 0%, 9%, 94%, 87% | HSV: 54°, 94%, 13%. Copy any format from the conversion table above.

What colors go well with #221F02?

The complementary color is HSL(234, 89%, 7%). For a triadic harmony, use hues 54°, 174°, and 294°. For analogous combinations, try hues 24° and 84°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(54, 89%, 7%) in CSS?

As HSL: color: hsl(54, 89%, 7%); — As HEX: color: #221F02; — As RGB: color: rgb(34, 31, 2); — Tailwind CSS: bg-[hsl(54,89%,7%)] — CSS variable: --color-primary: hsl(54, 89%, 7%);