#B5AB40#B5AB40
#B5AB40 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.9% C 0.127 H 104.0°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).
Color values
| HEX | #B5AB40 |
|---|---|
| RGB | rgb(181, 171, 64) |
| HSL | hsl(55, 48%, 48%) |
| HSV | hsv(55, 65%, 71%) |
| CMYK | cmyk(0%, 5.5%, 64.6%, 29%) |
| CIE-LAB | lab(68.98, -9.48, 54.46) |
| CIE-LCH | lch(68.98, 55.28, 99.88°) |
| OKLab | oklab(72.94% -0.0307 0.1234) |
| OKLCH | oklch(72.94% 0.127 104) |
| XYZ | xyz(34.5457, 39.3210, 10.6195) |
| Luminance | 0.3932 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.98
Puke
#A5A502
ΔE00 4.99
Muddy Yellow
#BFAC05
ΔE00 5.09
Olive Yellow
#C2B709
ΔE00 5.89
Darkkhaki
#BDB76B
ΔE00 6.01
Khaki (survey)
#AAA662
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5AB40 #404AB5
analogous
#B57040 #B5AB40 #84B540
triadic
#B5AB40 #40B5AB #AB40B5
tetradic
#B5AB40 #40B570 #404AB5 #B54084
square
#B5AB40 #40B570 #404AB5 #B54084
split-complementary
#B5AB40 #4084B5 #7040B5
monochromatic
#5B5620 #888030 #B5AB40 #CAC168 #DAD496
Accessibility & contrast
On white
2.37
#B5AB40 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.86
#B5AB40 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5AB40
8.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5AB40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5AB40 | 1.00 | 2.37 | 8.86 | 8.86 |
| #FFFFFF | 2.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA533
Deuteranopia (green-blind)
#BDAB46
Tritanopia (blue-blind)
#C2A095
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b5ab40; /* rgb */ color: rgb(181, 171, 64); /* oklch */ color: oklch(72.9% 0.127 104.0);
Tailwind
colors: {
custom: {
50: '#cec37a',
500: '#b5ab40',
950: '#000000',
},
}SCSS
$custom: #b5ab40; $custom-light: #cec37a; $custom-dark: #000000;
JSON
{
"hex": "#b5ab40",
"rgb": {
"r": 181,
"g": 171,
"b": 64
},
"hsl": {
"h": 54.872,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.72936,
"c": 0.12719,
"h": 104
},
"luminance": 0.3932
}Semantic roles & 50–950 ramp
primary
#B5AB40
secondary
#8B90C5
accent
#5CD750
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B