#B4AB2A#B4AB2A
#B4AB2A is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.142 H 105.3°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).
Color values
| HEX | #B4AB2A |
|---|---|
| RGB | rgb(180, 171, 42) |
| HSL | hsl(56, 62%, 44%) |
| HSV | hsv(56, 77%, 71%) |
| CMYK | cmyk(0%, 5%, 76.7%, 29.4%) |
| CIE-LAB | lab(68.75, -11.04, 62.57) |
| CIE-LCH | lch(68.75, 63.54, 100.01°) |
| OKLab | oklab(72.68% -0.0373 0.1368) |
| OKLCH | oklch(72.68% 0.142 105.3) |
| XYZ | xyz(33.8047, 38.9976, 7.9367) |
| Luminance | 0.3900 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.47
Muddy Yellow
#BFAC05
ΔE00 3.59
Vomit
#A2A415
ΔE00 3.92
Olive Yellow
#C2B709
ΔE00 4.35
Brownish Yellow
#C9B003
ΔE00 5.45
Mustard Green
#A8B504
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4AB2A #2A33B4
analogous
#B4662A #B4AB2A #78B42A
triadic
#B4AB2A #2AB4AB #AB2AB4
tetradic
#B4AB2A #2AB466 #2A33B4 #B42A78
square
#B4AB2A #2AB466 #2A33B4 #B42A78
split-complementary
#B4AB2A #2A78B4 #662AB4
monochromatic
#514D13 #827C1E #B4AB2A #D4CB47 #E0D979
Accessibility & contrast
On white
2.39
#B4AB2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.80
#B4AB2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4AB2A
8.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4AB2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4AB2A | 1.00 | 2.39 | 8.80 | 8.80 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA50A
Deuteranopia (green-blind)
#BEAA34
Tritanopia (blue-blind)
#C29F93
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b4ab2a; /* rgb */ color: rgb(180, 171, 42); /* oklch */ color: oklch(72.7% 0.142 105.3);
Tailwind
colors: {
custom: {
50: '#cec36e',
500: '#b4ab2a',
950: '#000000',
},
}SCSS
$custom: #b4ab2a; $custom-light: #cec36e; $custom-dark: #000000;
JSON
{
"hex": "#b4ab2a",
"rgb": {
"r": 180,
"g": 171,
"b": 42
},
"hsl": {
"h": 56.087,
"s": 62.162,
"l": 43.529
},
"oklch": {
"l": 0.72682,
"c": 0.14175,
"h": 105.3
},
"luminance": 0.38996
}Semantic roles & 50–950 ramp
primary
#B4AB2A
secondary
#7278C8
accent
#4DE543
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B