#CDC398

Closest named color: Ash Gray (#BFC8AD). oklch(81.5% 0.058 96.5), rgb(205, 195, 152).

Aa

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

About this color

#CDC398 is a light, muted yellow. In OKLCH its lightness is 81%, its chroma 0.058 and its hue 97°. Its hue sits on the warm side of the wheel. The nearest named color is Ash Gray (#BFC8AD), ΔE 0.030 away. Black text reads best on it, at 11.85:1.

Hue familyYellows
Lightnesslight (81%)
Chromamuted (0.058)
Temperaturewarm
Nearest nameAsh Gray (#BFC8AD)
Black text11.85:1
White text1.77:1

Values

HEX#CDC398
RGBrgb(205, 195, 152)
HSLhsl(49, 35%, 70%)
OKLCHoklch(81.5% 0.058 96.5)

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 #CDC398 1.77:1 Fails Lc -36.5 Non-text elements, placeholder text
Black text on #CDC398 11.85:1 AAA Lc 71.3 Content text, not long reading
#CDC398 text on white 1.77:1 Fails Lc 32.6 Non-text elements, placeholder text
#CDC398 text on black 11.85:1 AAA Lc -70.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

    #F7F5F0

    oklch(97% 0.007 88.6)

  2. Step 100

    100

    #EDEADE

    oklch(93.6% 0.016 95.2)

  3. Step 200

    200

    #DFDAC2

    oklch(88.6% 0.033 97.3)

  4. Step 300

    300 (this color)

    #CDC398

    oklch(81.5% 0.058 96.5)

  5. Step 400

    400

    #B1A15A

    oklch(70.7% 0.094 97)

  6. Step 500

    500

    #9F8920

    oklch(63.2% 0.12 96.5)

  7. Step 600

    600

    #877200

    oklch(55.5% 0.114 96.2)

  8. Step 700

    700

    #716000

    oklch(49.1% 0.101 97)

  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

    #2D2605

    oklch(26.9% 0.05 97.1)

Export this scale for Tailwind in the Tailwind colors tool

#CDC398 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)#CCC0950.008
Deuteranopia (no green cones)#CFC4990.004
Tritanopia (no blue cones)#D5BDB70.052
Achromatopsia (no color)#C3C3C30.059

Harmonies

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

Complementary

The opposite hue (180°).

  • #CDC398

    #CDC398

    oklch(81.5% 0.058 96.5)

  • #B8C0E9

    #B8C0E9

    oklch(81.5% 0.058 276.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CDC398

    #CDC398

    oklch(81.5% 0.058 96.5)

  • #DDBC9B

    #DDBC9B

    oklch(81.5% 0.058 66.9)

  • #B8CAA1

    #B8CAA1

    oklch(81.5% 0.059 127)

Open the analogous palette in the generator

Split complementary

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

  • #CDC398

    #CDC398

    oklch(81.5% 0.058 96.5)

  • #A4C7E7

    #A4C7E7

    oklch(81.5% 0.059 246.2)

  • #CCB9E1

    #CCB9E1

    oklch(81.5% 0.059 306.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CDC398

    #CDC398

    oklch(81.5% 0.058 96.5)

  • #97CCDB

    #97CCDB

    oklch(81.3% 0.059 217.1)

  • #DCB5D1

    #DCB5D1

    oklch(81.6% 0.058 336.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CDC398

    #CDC398

    oklch(81.5% 0.058 96.5)

  • #97CFC8

    #97CFC8

    oklch(81.4% 0.059 186.5)

  • #B8C0E9

    #B8C0E9

    oklch(81.5% 0.058 276.4)

  • #E5B3BC

    #E5B3BC

    oklch(81.4% 0.059 6.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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