#CAB151#CAB151
#CAB151 is a light, moderate yellow. Relative luminance 0.446; OKLCH L 76.3% C 0.119 H 94.8°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).
Color values
| HEX | #CAB151 |
|---|---|
| RGB | rgb(202, 177, 81) |
| HSL | hsl(48, 53%, 55%) |
| HSV | hsv(48, 60%, 79%) |
| CMYK | cmyk(0%, 12.4%, 59.9%, 20.8%) |
| CIE-LAB | lab(72.63, -2.48, 51.38) |
| CIE-LCH | lch(72.63, 51.44, 92.77°) |
| OKLab | oklab(76.32% -0.01 0.1187) |
| OKLCH | oklch(76.32% 0.119 94.8) |
| XYZ | xyz(41.5662, 44.5969, 14.2016) |
| Luminance | 0.4460 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Desert
#CCAD60
ΔE00 3.86
Mustard
#DBB42C
ΔE00 5.57
Sandy Brown
#C4A661
ΔE00 5.63
Tan (survey)
#D1B26F
ΔE00 5.67
Brownish Yellow
#C9B003
ΔE00 5.99
Mustard (survey)
#CEB301
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CAB151 #516ACA
analogous
#CA7451 #CAB151 #A7CA51
triadic
#CAB151 #51CAB1 #B151CA
tetradic
#CAB151 #51CA74 #516ACA #CA51A7
square
#CAB151 #51CA74 #516ACA #CA51A7
split-complementary
#CAB151 #51A7CA #7451CA
monochromatic
#7B6925 #AA9234 #CAB151 #D8C680 #E7DBAF
Accessibility & contrast
On white
2.12
#CAB151 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.92
#CAB151 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CAB151
9.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CAB151 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CAB151 | 1.00 | 2.12 | 9.92 | 9.92 |
| #FFFFFF | 2.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AE47
Deuteranopia (green-blind)
#C8B655
Tritanopia (blue-blind)
#D9A59C
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #cab151; /* rgb */ color: rgb(202, 177, 81); /* oklch */ color: oklch(76.3% 0.119 94.8);
Tailwind
colors: {
custom: {
50: '#ddc885',
500: '#cab151',
950: '#000000',
},
}SCSS
$custom: #cab151; $custom-light: #ddc885; $custom-dark: #000000;
JSON
{
"hex": "#cab151",
"rgb": {
"r": 202,
"g": 177,
"b": 81
},
"hsl": {
"h": 47.603,
"s": 53.304,
"l": 55.49
},
"oklch": {
"l": 0.76322,
"c": 0.11915,
"h": 94.8
},
"luminance": 0.44595
}Semantic roles & 50–950 ramp
primary
#CAB151
secondary
#A2ADD5
accent
#69DD4B
background
#FDFCF8
surface
#FBF8EF
border
#D4D1CA
text
#15130B
muted
#83827C