#B5AA40#B5AA40
#B5AA40 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.7% C 0.126 H 103.4°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).
Color values
| HEX | #B5AA40 |
|---|---|
| RGB | rgb(181, 170, 64) |
| HSL | hsl(54, 48%, 48%) |
| HSV | hsv(54, 65%, 71%) |
| CMYK | cmyk(0%, 6.1%, 64.6%, 29%) |
| CIE-LAB | lab(68.71, -8.96, 54.17) |
| CIE-LCH | lch(68.71, 54.91, 99.39°) |
| OKLab | oklab(72.72% -0.0292 0.1228) |
| OKLCH | oklch(72.72% 0.126 103.4) |
| XYZ | xyz(34.3575, 38.9447, 10.5568) |
| Luminance | 0.3894 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 5.07
Vomit
#A2A415
ΔE00 5.09
Puke
#A5A502
ΔE00 5.10
Olive Yellow
#C2B709
ΔE00 6.08
Darkkhaki
#BDB76B
ΔE00 6.12
Khaki (survey)
#AAA662
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5AA40 #404BB5
analogous
#B56F40 #B5AA40 #85B540
triadic
#B5AA40 #40B5AA #AA40B5
tetradic
#B5AA40 #40B56F #404BB5 #B54085
square
#B5AA40 #40B56F #404BB5 #B54085
split-complementary
#B5AA40 #4085B5 #6F40B5
monochromatic
#5B5520 #888030 #B5AA40 #CAC168 #DAD396
Accessibility & contrast
On white
2.39
#B5AA40 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.79
#B5AA40 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5AA40
8.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5AA40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5AA40 | 1.00 | 2.39 | 8.79 | 8.79 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A533
Deuteranopia (green-blind)
#BCAA46
Tritanopia (blue-blind)
#C29F94
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b5aa40; /* rgb */ color: rgb(181, 170, 64); /* oklch */ color: oklch(72.7% 0.126 103.4);
Tailwind
colors: {
custom: {
50: '#cec37a',
500: '#b5aa40',
950: '#000000',
},
}SCSS
$custom: #b5aa40; $custom-light: #cec37a; $custom-dark: #000000;
JSON
{
"hex": "#b5aa40",
"rgb": {
"r": 181,
"g": 170,
"b": 64
},
"hsl": {
"h": 54.359,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.72719,
"c": 0.12626,
"h": 103.4
},
"luminance": 0.38943
}Semantic roles & 50–950 ramp
primary
#B5AA40
secondary
#8B91C5
accent
#5DD750
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B