#B2AB42#B2AB42
#B2AB42 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.126 H 105.5°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).
Color values
| HEX | #B2AB42 |
|---|---|
| RGB | rgb(178, 171, 66) |
| HSL | hsl(56, 46%, 48%) |
| HSV | hsv(56, 63%, 70%) |
| CMYK | cmyk(0%, 3.9%, 62.9%, 30.2%) |
| CIE-LAB | lab(68.74, -10.65, 53.26) |
| CIE-LCH | lch(68.74, 54.32, 101.30°) |
| OKLab | oklab(72.69% -0.0336 0.1213) |
| OKLCH | oklch(72.69% 0.126 105.5) |
| XYZ | xyz(33.9076, 38.9853, 10.8920) |
| Luminance | 0.3898 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.65
Puke
#A5A502
ΔE00 4.84
Darkkhaki
#BDB76B
ΔE00 5.77
Muddy Yellow
#BFAC05
ΔE00 5.85
Khaki (survey)
#AAA662
ΔE00 6.06
Olive Yellow
#C2B709
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2AB42 #4249B2
analogous
#B27342 #B2AB42 #81B242
triadic
#B2AB42 #42B2AB #AB42B2
tetradic
#B2AB42 #42B273 #4249B2 #B24281
square
#B2AB42 #42B273 #4249B2 #B24281
split-complementary
#B2AB42 #4281B2 #7342B2
monochromatic
#595521 #858031 #B2AB42 #C8C26A #D8D496
Accessibility & contrast
On white
2.39
#B2AB42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.80
#B2AB42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2AB42
8.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2AB42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2AB42 | 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)
#B9A535
Deuteranopia (green-blind)
#BCAA48
Tritanopia (blue-blind)
#BFA095
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b2ab42; /* rgb */ color: rgb(178, 171, 66); /* oklch */ color: oklch(72.7% 0.126 105.5);
Tailwind
colors: {
custom: {
50: '#ccc37b',
500: '#b2ab42',
950: '#000000',
},
}SCSS
$custom: #b2ab42; $custom-light: #ccc37b; $custom-dark: #000000;
JSON
{
"hex": "#b2ab42",
"rgb": {
"r": 178,
"g": 171,
"b": 66
},
"hsl": {
"h": 56.25,
"s": 45.902,
"l": 47.843
},
"oklch": {
"l": 0.72686,
"c": 0.12585,
"h": 105.5
},
"luminance": 0.38984
}Semantic roles & 50–950 ramp
primary
#B2AB42
secondary
#8C8FC4
accent
#5AD652
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C