#D8CC51

Closest named color: Greenish Beige (#C9D179). oklch(83.2% 0.143 103.7), rgb(216, 204, 81).

Aa

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

About this color

#D8CC51 is a light, vivid yellow. In OKLCH its lightness is 83%, its chroma 0.143 and its hue 104°. Its hue sits on the warm side of the wheel. The nearest named color is Greenish Beige (#C9D179), ΔE 0.037 away. Black text reads best on it, at 12.67:1.

Hue familyYellows
Lightnesslight (83%)
Chromavivid (0.143)
Temperaturewarm
Nearest nameGreenish Beige (#C9D179)
Black text12.67:1
White text1.65:1

Values

HEX#D8CC51
RGBrgb(216, 204, 81)
HSLhsl(55, 63%, 58%)
OKLCHoklch(83.2% 0.143 103.7)

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 #D8CC51 1.65:1 Fails Lc -32.6 Non-text elements, placeholder text
Black text on #D8CC51 12.67:1 AAA Lc 74.9 Content text, not long reading
#D8CC51 text on white 1.65:1 Fails Lc 28.9 Dividers and decoration only
#D8CC51 text on black 12.67:1 AAA Lc -74.0 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

    #F7F6E8

    oklch(97% 0.018 103.4)

  2. Step 100

    100

    #EEECCC

    oklch(93.6% 0.042 104.2)

  3. Step 200

    200

    #E2DC9F

    oklch(88.5% 0.079 103.1)

  4. Step 300

    300 (this color)

    #D8CC51

    oklch(83.2% 0.143 103.7)

  5. Step 400

    400

    #B1A400

    oklch(70.7% 0.149 103.9)

  6. Step 500

    500

    #988C00

    oklch(63.1% 0.133 103.5)

  7. Step 600

    600

    #7F7600

    oklch(55.6% 0.118 104.3)

  8. Step 700

    700

    #6B6300

    oklch(49.2% 0.104 104)

  9. Step 800

    800

    #585100

    oklch(42.8% 0.09 103.8)

  10. Step 900

    900

    #494300

    oklch(37.7% 0.08 103.8)

  11. Step 950

    950

    #2B2700

    oklch(26.9% 0.057 103.7)

Export this scale for Tailwind in the Tailwind colors tool

#D8CC51 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)#DDC6420.016
Deuteranopia (no green cones)#E1CC580.015
Tritanopia (no blue cones)#E7BFB20.130
Achromatopsia (no color)#C9C9C90.143

Harmonies

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

Complementary

The opposite hue (180°).

  • #D8CC51

    #D8CC51

    oklch(83.2% 0.143 103.7)

  • #C0C1FF

    #C0C1FF

    oklch(83.2% 0.087 283.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D8CC51

    #D8CC51

    oklch(83.2% 0.143 103.7)

  • #FFB952

    #FFB952

    oklch(83.3% 0.142 73.9)

  • #A1DC79

    #A1DC79

    oklch(83.2% 0.143 133.8)

Open the analogous palette in the generator

Split complementary

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

  • #D8CC51

    #D8CC51

    oklch(83.2% 0.143 103.7)

  • #A1CCFF

    #A1CCFF

    oklch(83.3% 0.085 253.1)

  • #E4B1FF

    #E4B1FF

    oklch(83.3% 0.119 313.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D8CC51

    #D8CC51

    oklch(83.2% 0.143 103.7)

  • #69D8FF

    #69D8FF

    oklch(83.2% 0.115 223.9)

  • #FFA8DB

    #FFA8DB

    oklch(83.2% 0.12 344)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D8CC51

    #D8CC51

    oklch(83.2% 0.143 103.7)

  • #00E4E2

    #00E4E2

    oklch(83.1% 0.142 193.6)

  • #C0C1FF

    #C0C1FF

    oklch(83.2% 0.087 283.6)

  • #FFAFB6

    #FFAFB6

    oklch(83.2% 0.094 13.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #D8CC51 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.