#CAB70F

Closest named color: Mustard (#CEB301). oklch(77.2% 0.159 101.7), rgb(202, 183, 15).

Aa

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

About this color

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

Hue familyYellows
Lightnessmedium-light (77%)
Chromavivid (0.159)
Temperaturewarm
Nearest nameMustard (#CEB301)
Black text10.29:1
White text2.04:1

Values

HEX#CAB70F
RGBrgb(202, 183, 15)
HSLhsl(54, 86%, 43%)
OKLCHoklch(77.2% 0.159 101.7)

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 #CAB70F 2.04:1 Fails Lc -44.0 Non-text elements, placeholder text
Black text on #CAB70F 10.29:1 AAA Lc 64.4 Content text, not long reading
#CAB70F text on white 2.04:1 Fails Lc 39.5 Non-text elements, placeholder text
#CAB70F text on black 10.29:1 AAA Lc -62.8 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

    #F8F6E6

    oklch(97% 0.021 101)

  2. Step 100

    100

    #F0ECC9

    oklch(93.7% 0.046 101.9)

  3. Step 200

    200

    #E5DC97

    oklch(88.6% 0.089 101.7)

  4. Step 300

    300 (this color)

    #CAB70F

    oklch(77.2% 0.159 101.7)

  5. Step 400

    400

    #B4A300

    oklch(70.8% 0.148 101.9)

  6. Step 500

    500

    #9A8B00

    oklch(63% 0.132 101.8)

  7. Step 600

    600

    #827500

    oklch(55.7% 0.116 101.7)

  8. Step 700

    700

    #6D6200

    oklch(49.1% 0.103 101.8)

  9. Step 800

    800

    #595000

    oklch(42.7% 0.089 102)

  10. Step 900

    900

    #4A4200

    oklch(37.6% 0.079 101.6)

  11. Step 950

    950

    #2C2700

    oklch(27% 0.057 102.1)

Export this scale for Tailwind in the Tailwind colors tool

#CAB70F 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)#CAB1000.015
Deuteranopia (no green cones)#CFB9240.012
Tritanopia (no blue cones)#DAA99C0.146
Achromatopsia (no color)#B5B5B50.159

Harmonies

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

Complementary

The opposite hue (180°).

  • #CAB70F

    #CAB70F

    oklch(77.2% 0.159 101.7)

  • #A8ABFF

    #A8ABFF

    oklch(77.1% 0.119 281.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CAB70F

    #CAB70F

    oklch(77.2% 0.159 101.7)

  • #F2A11D

    #F2A11D

    oklch(77.1% 0.159 71.8)

  • #8EC956

    #8EC956

    oklch(77.1% 0.159 131.9)

Open the analogous palette in the generator

Split complementary

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

  • #CAB70F

    #CAB70F

    oklch(77.2% 0.159 101.7)

  • #7AB9FF

    #7AB9FF

    oklch(77.1% 0.12 252)

  • #D695FE

    #D695FE

    oklch(77.2% 0.159 311.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CAB70F

    #CAB70F

    oklch(77.2% 0.159 101.7)

  • #00C8F5

    #00C8F5

    oklch(77.2% 0.142 221.8)

  • #F889D1

    #F889D1

    oklch(77.2% 0.159 342)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CAB70F

    #CAB70F

    oklch(77.2% 0.159 101.7)

  • #00CFCA

    #00CFCA

    oklch(77.2% 0.133 191.7)

  • #A8ABFF

    #A8ABFF

    oklch(77.1% 0.119 281.6)

  • #FF8E9E

    #FF8E9E

    oklch(77.2% 0.137 11.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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