#D2C271

Closest named color: Sand (#E2CA76). oklch(81% 0.104 98.4), rgb(210, 194, 113).

Aa

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

About this color

#D2C271 is a light, moderately saturated yellow. In OKLCH its lightness is 81%, its chroma 0.104 and its hue 98°. Its hue sits on the warm side of the wheel. The nearest named color is Sand (#E2CA76), ΔE 0.033 away. Black text reads best on it, at 11.69:1.

Hue familyYellows
Lightnesslight (81%)
Chromamoderately saturated (0.104)
Temperaturewarm
Nearest nameSand (#E2CA76)
Black text11.69:1
White text1.79:1

Values

HEX#D2C271
RGBrgb(210, 194, 113)
HSLhsl(50, 52%, 63%)
OKLCHoklch(81% 0.104 98.4)

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 #D2C271 1.79:1 Fails Lc -37.3 Non-text elements, placeholder text
Black text on #D2C271 11.69:1 AAA Lc 70.6 Content text, not long reading
#D2C271 text on white 1.79:1 Fails Lc 33.2 Non-text elements, placeholder text
#D2C271 text on black 11.69:1 AAA Lc -69.4 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

    #F8F6EB

    oklch(97.2% 0.015 98.3)

  2. Step 100

    100

    #EFEBD4

    oklch(93.7% 0.031 98.9)

  3. Step 200

    200

    #E3DAAF

    oklch(88.5% 0.057 97.6)

  4. Step 300

    300 (this color)

    #D2C271

    oklch(81% 0.104 98.4)

  5. Step 400

    400

    #B9A000

    oklch(70.6% 0.146 97.9)

  6. Step 500

    500

    #9E8900

    oklch(63% 0.13 98.3)

  7. Step 600

    600

    #857300

    oklch(55.6% 0.115 98.3)

  8. Step 700

    700

    #706100

    oklch(49.2% 0.102 98.7)

  9. Step 800

    800

    #5C4F00

    oklch(42.8% 0.088 98.3)

  10. Step 900

    900

    #4C4100

    oklch(37.5% 0.078 98.3)

  11. Step 950

    950

    #2E2600

    oklch(27% 0.056 97.1)

Export this scale for Tailwind in the Tailwind colors tool

#D2C271 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)#D0BE6A0.012
Deuteranopia (no green cones)#D5C4740.007
Tritanopia (no blue cones)#DFB7AF0.096
Achromatopsia (no color)#C1C1C10.104

Harmonies

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

Complementary

The opposite hue (180°).

  • #D2C271

    #D2C271

    oklch(81% 0.104 98.4)

  • #B2BBFF

    #B2BBFF

    oklch(81% 0.097 278.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D2C271

    #D2C271

    oklch(81% 0.104 98.4)

  • #EDB476

    #EDB476

    oklch(80.9% 0.103 67.9)

  • #ADCE85

    #ADCE85

    oklch(81% 0.104 128.3)

Open the analogous palette in the generator

Split complementary

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

  • #D2C271

    #D2C271

    oklch(81% 0.104 98.4)

  • #8DC7FF

    #8DC7FF

    oklch(81.1% 0.1 248.3)

  • #D4AFF4

    #D4AFF4

    oklch(81% 0.103 308.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D2C271

    #D2C271

    oklch(81% 0.104 98.4)

  • #6AD1EE

    #6AD1EE

    oklch(81% 0.104 218.7)

  • #EDA7D8

    #EDA7D8

    oklch(81% 0.103 338.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D2C271

    #D2C271

    oklch(81% 0.104 98.4)

  • #66D7CE

    #66D7CE

    oklch(81.1% 0.104 188.3)

  • #B2BBFF

    #B2BBFF

    oklch(81% 0.097 278.2)

  • #FBA5B4

    #FBA5B4

    oklch(81% 0.103 8.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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