#D7D397

Closest named color: Vanilla (#E9D8A6). oklch(85.6% 0.078 104.7), rgb(215, 211, 151).

Aa

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

About this color

#D7D397 is a light, moderately saturated yellow. In OKLCH its lightness is 86%, its chroma 0.078 and its hue 105°. Its hue sits on the warm side of the wheel. The nearest named color is Vanilla (#E9D8A6), ΔE 0.034 away. Black text reads best on it, at 13.65:1.

Hue familyYellows
Lightnesslight (86%)
Chromamoderately saturated (0.078)
Temperaturewarm
Nearest nameVanilla (#E9D8A6)
Black text13.65:1
White text1.53:1

Values

HEX#D7D397
RGBrgb(215, 211, 151)
HSLhsl(56, 44%, 72%)
OKLCHoklch(85.6% 0.078 104.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 #D7D397 1.53:1 Fails Lc -28.1 Dividers and decoration only
Black text on #D7D397 13.65:1 AAA Lc 78.9 Fine for body text
#D7D397 text on white 1.53:1 Fails Lc 24.8 Dividers and decoration only
#D7D397 text on black 13.65:1 AAA Lc -78.3 Fine for body text

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 200.

  1. Step 50

    50

    #F7F6EC

    oklch(97.1% 0.013 102)

  2. Step 100

    100

    #ECEBD5

    oklch(93.5% 0.029 104.8)

  3. Step 200

    200 (this color)

    #D7D397

    oklch(85.6% 0.078 104.7)

  4. Step 300

    300

    #CAC476

    oklch(80.8% 0.1 104.6)

  5. Step 400

    400

    #B0A400

    oklch(70.6% 0.149 104.3)

  6. Step 500

    500

    #968D00

    oklch(63.1% 0.134 105.1)

  7. Step 600

    600

    #7E7600

    oklch(55.5% 0.118 104.9)

  8. Step 700

    700

    #6A6300

    oklch(49.1% 0.104 104.8)

  9. Step 800

    800

    #575100

    oklch(42.7% 0.09 104.7)

  10. Step 900

    900

    #484300

    oklch(37.6% 0.08 104.8)

  11. Step 950

    950

    #2B2800

    oklch(27.1% 0.058 105.3)

Export this scale for Tailwind in the Tailwind colors tool

#D7D397 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)#DDCF930.012
Deuteranopia (no green cones)#DFD2990.012
Tritanopia (no blue cones)#E0CBC30.070
Achromatopsia (no color)#D0D0D00.078

Harmonies

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

Complementary

The opposite hue (180°).

  • #D7D397

    #D7D397

    oklch(85.6% 0.078 104.7)

  • #CACAFF

    #CACAFF

    oklch(85.7% 0.073 284.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D7D397

    #D7D397

    oklch(85.6% 0.078 104.7)

  • #EEC996

    #EEC996

    oklch(85.6% 0.078 75.3)

  • #BADCA8

    #BADCA8

    oklch(85.6% 0.079 134.9)

Open the analogous palette in the generator

Split complementary

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

  • #D7D397

    #D7D397

    oklch(85.6% 0.078 104.7)

  • #B0D3FF

    #B0D3FF

    oklch(85.7% 0.072 254.3)

  • #E3C1F4

    #E3C1F4

    oklch(85.6% 0.078 314.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D7D397

    #D7D397

    oklch(85.6% 0.078 104.7)

  • #97DBF6

    #97DBF6

    oklch(85.5% 0.078 224.8)

  • #F6BCDC

    #F6BCDC

    oklch(85.7% 0.078 344.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D7D397

    #D7D397

    oklch(85.6% 0.078 104.7)

  • #90E0DF

    #90E0DF

    oklch(85.5% 0.078 194.8)

  • #CACAFF

    #CACAFF

    oklch(85.7% 0.073 284.7)

  • #FFBBBF

    #FFBBBF

    oklch(85.6% 0.079 14.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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