#D8BA2E

Closest named color: Dark Yellow (#D5B60A). oklch(79.2% 0.151 96.2), rgb(216, 186, 46).

Aa

Black text reads best on this color (10.98:1).

About this color

#D8BA2E is a light, vivid yellow. In OKLCH its lightness is 79%, its chroma 0.151 and its hue 96°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Yellow (#D5B60A), ΔE 0.015 away. Black text reads best on it, at 10.98:1.

Hue familyYellows
Lightnesslight (79%)
Chromavivid (0.151)
Temperaturewarm
Nearest nameDark Yellow (#D5B60A)
Black text10.98:1
White text1.91:1

Values

HEX#D8BA2E
RGBrgb(216, 186, 46)
HSLhsl(49, 69%, 51%)
OKLCHoklch(79.2% 0.151 96.2)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #D8BA2E 1.91:1 Fails Lc -40.6 Non-text elements, placeholder text
Black text on #D8BA2E 10.98:1 AAA Lc 67.6 Content text, not long reading
#D8BA2E text on white 1.91:1 Fails Lc 36.3 Non-text elements, placeholder text
#D8BA2E text on black 10.98:1 AAA Lc -66.1 Content text, not long reading

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 300.

  1. Step 50

    50

    #F9F6E7

    oklch(97.1% 0.02 97.5)

  2. Step 100

    100

    #F2EACA

    oklch(93.5% 0.043 95.5)

  3. Step 200

    200

    #E9DA9A

    oklch(88.6% 0.084 96.5)

  4. Step 300

    300 (this color)

    #D8BA2E

    oklch(79.2% 0.151 96.2)

  5. Step 400

    400

    #BC9F00

    oklch(70.7% 0.145 95.9)

  6. Step 500

    500

    #A18800

    oklch(63.1% 0.13 96)

  7. Step 600

    600

    #877200

    oklch(55.5% 0.114 96.2)

  8. Step 700

    700

    #726000

    oklch(49.2% 0.101 96.3)

  9. Step 800

    800

    #5D4E00

    oklch(42.6% 0.088 96.3)

  10. Step 900

    900

    #4E4100

    oklch(37.8% 0.078 96.2)

  11. Step 950

    950

    #2E2600

    oklch(27% 0.056 97.1)

Export this scale for Tailwind in the Tailwind colors tool

#D8BA2E with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#CEB6080.023
Deuteranopia (no green cones)#D5BF380.012
Tritanopia (no blue cones)#EAABA00.139
Achromatopsia (no color)#BBBBBB0.151

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #D8BA2E

    #D8BA2E

    oklch(79.2% 0.151 96.2)

  • #A9B6FF

    #A9B6FF

    oklch(79.3% 0.105 276)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D8BA2E

    #D8BA2E

    oklch(79.2% 0.151 96.2)

  • #FCA641

    #FCA641

    oklch(79.4% 0.151 66.3)

  • #A3CC59

    #A3CC59

    oklch(79.2% 0.15 126)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #D8BA2E

    #D8BA2E

    oklch(79.2% 0.151 96.2)

  • #7DC2FF

    #7DC2FF

    oklch(79.2% 0.112 246.5)

  • #D1A4FF

    #D1A4FF

    oklch(79.3% 0.134 306.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D8BA2E

    #D8BA2E

    oklch(79.2% 0.151 96.2)

  • #00D1F5

    #00D1F5

    oklch(79.3% 0.141 216.1)

  • #F794E0

    #F794E0

    oklch(79.3% 0.151 336)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D8BA2E

    #D8BA2E

    oklch(79.2% 0.151 96.2)

  • #00D7C9

    #00D7C9

    oklch(79.1% 0.138 186.5)

  • #A9B6FF

    #A9B6FF

    oklch(79.3% 0.105 276)

  • #FF98AF

    #FF98AF

    oklch(79.2% 0.125 5.9)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #D8BA2E, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #D8BA2E in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.