#C5C840

Closest named color: Mustard Yellow (#D2BD0A). oklch(80.6% 0.154 110.6), rgb(197, 200, 64).

Aa

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

About this color

#C5C840 is a light, vivid yellow. In OKLCH its lightness is 81%, its chroma 0.154 and its hue 111°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Mustard Yellow (#D2BD0A), ΔE 0.031 away. Black text reads best on it, at 11.70:1.

Hue familyYellows
Lightnesslight (81%)
Chromavivid (0.154)
Temperaturein between
Nearest nameMustard Yellow (#D2BD0A)
Black text11.70:1
White text1.79:1

Values

HEX#C5C840
RGBrgb(197, 200, 64)
HSLhsl(61, 55%, 52%)
OKLCHoklch(80.6% 0.154 110.6)

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 #C5C840 1.79:1 Fails Lc -37.1 Non-text elements, placeholder text
Black text on #C5C840 11.70:1 AAA Lc 70.8 Content text, not long reading
#C5C840 text on white 1.79:1 Fails Lc 33.1 Non-text elements, placeholder text
#C5C840 text on black 11.70:1 AAA Lc -69.5 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

    #F6F7E7

    oklch(97.1% 0.021 109.7)

  2. Step 100

    100

    #EBEDCB

    oklch(93.6% 0.045 110)

  3. Step 200

    200

    #DBDF9D

    oklch(88.5% 0.086 110.9)

  4. Step 300

    300 (this color)

    #C5C840

    oklch(80.6% 0.154 110.6)

  5. Step 400

    400

    #A6A800

    oklch(70.6% 0.155 110.6)

  6. Step 500

    500

    #8E9000

    oklch(63.1% 0.138 110.8)

  7. Step 600

    600

    #777900

    oklch(55.6% 0.122 110.9)

  8. Step 700

    700

    #646500

    oklch(49% 0.107 110.5)

  9. Step 800

    800

    #525300

    oklch(42.7% 0.094 110.6)

  10. Step 900

    900

    #444500

    oklch(37.7% 0.083 110.7)

  11. Step 950

    950

    #282900

    oklch(27.1% 0.06 111.2)

Export this scale for Tailwind in the Tailwind colors tool

#C5C840 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)#D7BF2B0.031
Deuteranopia (no green cones)#D9C34A0.034
Tritanopia (no blue cones)#D2BCAD0.137
Achromatopsia (no color)#C1C1C10.154

Harmonies

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

Complementary

The opposite hue (180°).

  • #C5C840

    #C5C840

    oklch(80.6% 0.154 110.6)

  • #BFB4FF

    #BFB4FF

    oklch(80.6% 0.105 290.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C5C840

    #C5C840

    oklch(80.6% 0.154 110.6)

  • #F2B330

    #F2B330

    oklch(80.5% 0.153 80.5)

  • #86D877

    #86D877

    oklch(80.7% 0.154 140.6)

Open the analogous palette in the generator

Split complementary

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

  • #C5C840

    #C5C840

    oklch(80.6% 0.154 110.6)

  • #9CC1FF

    #9CC1FF

    oklch(80.7% 0.097 260.5)

  • #EC9DFC

    #EC9DFC

    oklch(80.6% 0.154 320.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C5C840

    #C5C840

    oklch(80.6% 0.154 110.6)

  • #62CEFF

    #62CEFF

    oklch(80.7% 0.121 230.4)

  • #FF9BCA

    #FF9BCA

    oklch(80.5% 0.131 350.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C5C840

    #C5C840

    oklch(80.6% 0.154 110.6)

  • #00D9E3

    #00D9E3

    oklch(80.5% 0.137 200.7)

  • #BFB4FF

    #BFB4FF

    oklch(80.6% 0.105 290.6)

  • #FFA3A1

    #FFA3A1

    oklch(80.7% 0.11 21.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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