#D2B201

Closest named color: Mustard (#CEB301). oklch(76.9% 0.158 96), rgb(210, 178, 1).

Aa

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

About this color

#D2B201 is a medium-light, vivid yellow. In OKLCH its lightness is 77%, its chroma 0.158 and its hue 96°. Its hue sits on the warm side of the wheel. The nearest named color is Mustard (#CEB301), ΔE 0.007 away. Black text reads best on it, at 10.10:1.

Hue familyYellows
Lightnessmedium-light (77%)
Chromavivid (0.158)
Temperaturewarm
Nearest nameMustard (#CEB301)
Black text10.10:1
White text2.07:1

Values

HEX#D2B201
RGBrgb(210, 178, 1)
HSLhsl(51, 99%, 41%)
OKLCHoklch(76.9% 0.158 96)

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 #D2B201 2.07:1 Fails Lc -44.9 Non-text elements, placeholder text
Black text on #D2B201 10.10:1 AAA Lc 63.6 Content text, not long reading
#D2B201 text on white 2.07:1 Fails Lc 40.3 Non-text elements, placeholder text
#D2B201 text on black 10.10:1 AAA Lc -61.9 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

    #F9F6E6

    oklch(97.1% 0.021 98.1)

  2. Step 100

    100

    #F3EAC8

    oklch(93.5% 0.046 94.9)

  3. Step 200

    200

    #EADA96

    oklch(88.6% 0.088 96.5)

  4. Step 300

    300 (this color)

    #D2B201

    oklch(76.9% 0.158 96)

  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

    #2F2600

    oklch(27.1% 0.056 95.5)

Export this scale for Tailwind in the Tailwind colors tool

#D2B201 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)#C6AE000.022
Deuteranopia (no green cones)#CEB81C0.015
Tritanopia (no blue cones)#E4A3970.144
Achromatopsia (no color)#B4B4B40.158

Harmonies

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

Complementary

The opposite hue (180°).

  • #D2B201

    #D2B201

    oklch(76.9% 0.158 96)

  • #9FADFF

    #9FADFF

    oklch(76.9% 0.119 275.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #D2B201

    #D2B201

    oklch(76.9% 0.158 96)

  • #F69C2C

    #F69C2C

    oklch(76.7% 0.158 65.9)

  • #9BC54A

    #9BC54A

    oklch(76.9% 0.157 125.9)

Open the analogous palette in the generator

Split complementary

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

  • #D2B201

    #D2B201

    oklch(76.9% 0.158 96)

  • #6BBBFF

    #6BBBFF

    oklch(76.8% 0.126 246.1)

  • #CC99FF

    #CC99FF

    oklch(76.9% 0.15 306.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #D2B201

    #D2B201

    oklch(76.9% 0.158 96)

  • #00C9EB

    #00C9EB

    oklch(77% 0.137 215.7)

  • #F18ADA

    #F18ADA

    oklch(76.9% 0.158 335.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #D2B201

    #D2B201

    oklch(76.9% 0.158 96)

  • #00CFC1

    #00CFC1

    oklch(76.9% 0.135 186.2)

  • #9FADFF

    #9FADFF

    oklch(76.9% 0.119 275.8)

  • #FF8AA6

    #FF8AA6

    oklch(76.8% 0.144 5.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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