#CACB38
Closest named color: Mustard Yellow (#D2BD0A). oklch(81.6% 0.161 109.9), rgb(202, 203, 56).
Aa
Black text reads best on this color (12.11:1).
About this color
#CACB38 is a light, vivid yellow. In OKLCH its lightness is 82%, its chroma 0.161 and its hue 110°. Its hue sits on the warm side of the wheel. The nearest named color is Mustard Yellow (#D2BD0A), ΔE 0.035 away. Black text reads best on it, at 12.11:1.
| Hue family | Yellows |
| Lightness | light (82%) |
| Chroma | vivid (0.161) |
| Temperature | warm |
| Nearest name | Mustard Yellow (#D2BD0A) |
| Black text | 12.11:1 |
| White text | 1.73:1 |
Values
| HEX | #CACB38 |
| RGB | rgb(202, 203, 56) |
| HSL | hsl(60, 59%, 51%) |
| OKLCH | oklch(81.6% 0.161 109.9) |
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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #CACB38 | 1.73:1 | Fails | Lc -35.2 | Non-text elements, placeholder text |
| Black text on #CACB38 | 12.11:1 | AAA | Lc 72.5 | Content text, not long reading |
| #CACB38 text on white | 1.73:1 | Fails | Lc 31.3 | Non-text elements, placeholder text |
| #CACB38 text on black | 12.11:1 | AAA | Lc -71.4 | 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.
-
Step 50
50
#F6F7E7
oklch(97.1% 0.021 109.7)
-
Step 100
100
#EBEDCA
oklch(93.6% 0.046 109.9)
-
Step 200
200
#DCDF9A
oklch(88.5% 0.089 110.2)
-
Step 300
300 (this color)
#CACB38
oklch(81.6% 0.161 109.9)
-
Step 400
400
#A7A800
oklch(70.7% 0.155 110.2)
-
Step 500
500
#8F9000
oklch(63.2% 0.138 110.3)
-
Step 600
600
#787900
oklch(55.7% 0.122 110.4)
-
Step 700
700
#656500
oklch(49.1% 0.107 109.8)
-
Step 800
800
#535300
oklch(42.8% 0.093 109.8)
-
Step 900
900
#454500
oklch(37.8% 0.082 109.8)
-
Step 950
950
#282900
oklch(27.1% 0.06 111.2)
#CACB38 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #DBC21A | 0.030 |
| Deuteranopia (no green cones) | #DDC744 | 0.032 |
| Tritanopia (no blue cones) | #D8BEAF | 0.145 |
| Achromatopsia (no color) | #C5C5C5 | 0.161 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #CACB38
#CACB38
oklch(81.6% 0.161 109.9)
- #C1B8FF
#C1B8FF
oklch(81.5% 0.099 289.8)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #CACB38, closest first.
No curated palette has a color within ΔE 0.04 of #CACB38.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Mustard Yellow #D2BD0A ΔE 0.035
- Dark Yellow #D5B60A ΔE 0.052
- Greenish Beige #C9D179 ΔE 0.053
- Olive Yellow #C2B709 ΔE 0.053
- Pale Olive Green #B1D27B ΔE 0.057
- Greenish Tan #BCCB7A ΔE 0.057
- Mustard #CEB301 ΔE 0.059
- Yellow Green #9ACD32 ΔE 0.063
Use #CACB38 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.