#C7AE02

Closest named color: Muddy Yellow (#BFAC05). oklch(75% 0.155 98.8), rgb(199, 174, 2).

Aa

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

About this color

#C7AE02 is a medium-light, vivid yellow. In OKLCH its lightness is 75%, its chroma 0.155 and its hue 99°. Its hue sits on the warm side of the wheel. The nearest named color is Muddy Yellow (#BFAC05), ΔE 0.014 away. Black text reads best on it, at 9.48:1.

Hue familyYellows
Lightnessmedium-light (75%)
Chromavivid (0.155)
Temperaturewarm
Nearest nameMuddy Yellow (#BFAC05)
Black text9.48:1
White text2.21:1

Values

HEX#C7AE02
RGBrgb(199, 174, 2)
HSLhsl(52, 98%, 39%)
OKLCHoklch(75% 0.155 98.8)

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 #C7AE02 2.21:1 Fails Lc -48.1 Large or bold text, headings
Black text on #C7AE02 9.48:1 AAA Lc 60.6 Content text, not long reading
#C7AE02 text on white 2.21:1 Fails Lc 43.4 Non-text elements, placeholder text
#C7AE02 text on black 9.48:1 AAA Lc -58.8 Large or bold text, headings

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

  1. Step 50

    50

    #F7F6EC

    oklch(97.1% 0.013 102)

  2. Step 100

    100

    #EEEBD6

    oklch(93.7% 0.028 100.3)

  3. Step 200

    200

    #E2DAB2

    oklch(88.5% 0.053 98)

  4. Step 300

    300

    #D0C277

    oklch(80.9% 0.097 99)

  5. Step 400

    400 (this color)

    #C7AE02

    oklch(75% 0.155 98.8)

  6. Step 500

    500

    #9E8A00

    oklch(63.2% 0.131 99)

  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

    #5B4F00

    oklch(42.7% 0.088 99.2)

  10. Step 900

    900

    #4C4200

    oklch(37.8% 0.078 99.5)

  11. Step 950

    950

    #2D2600

    oklch(26.8% 0.056 98.7)

Export this scale for Tailwind in the Tailwind colors tool

#C7AE02 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)#C1A9000.017
Deuteranopia (no green cones)#C7B21D0.010
Tritanopia (no blue cones)#D8A0940.142
Achromatopsia (no color)#AEAEAE0.155

Harmonies

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

Complementary

The opposite hue (180°).

  • #C7AE02

    #C7AE02

    oklch(75% 0.155 98.8)

  • #9CA4FF

    #9CA4FF

    oklch(74.9% 0.131 278.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C7AE02

    #C7AE02

    oklch(75% 0.155 98.8)

  • #EC9922

    #EC9922

    oklch(75% 0.155 68.9)

  • #8FC04C

    #8FC04C

    oklch(74.9% 0.155 128.9)

Open the analogous palette in the generator

Split complementary

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

  • #C7AE02

    #C7AE02

    oklch(75% 0.155 98.8)

  • #64B4FF

    #64B4FF

    oklch(75% 0.134 248.6)

  • #CA90F8

    #CA90F8

    oklch(74.9% 0.156 308.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C7AE02

    #C7AE02

    oklch(75% 0.155 98.8)

  • #00C1E7

    #00C1E7

    oklch(74.9% 0.135 218.7)

  • #EC84CE

    #EC84CE

    oklch(74.9% 0.155 338.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C7AE02

    #C7AE02

    oklch(75% 0.155 98.8)

  • #00C8BE

    #00C8BE

    oklch(75.1% 0.13 188.4)

  • #9CA4FF

    #9CA4FF

    oklch(74.9% 0.131 278.9)

  • #FE809A

    #FE809A

    oklch(74.9% 0.155 8.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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