#B9B151#B9B151
#B9B151 is a light, moderate yellow. Relative luminance 0.424; OKLCH L 74.8% C 0.118 H 104.5°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).
Color values
| HEX | #B9B151 |
|---|---|
| RGB | rgb(185, 177, 81) |
| HSL | hsl(55, 43%, 52%) |
| HSV | hsv(55, 56%, 73%) |
| CMYK | cmyk(0%, 4.3%, 56.2%, 27.5%) |
| CIE-LAB | lab(71.11, -9.70, 49.26) |
| CIE-LCH | lch(71.11, 50.20, 101.14°) |
| OKLab | oklab(74.76% -0.0296 0.1146) |
| OKLCH | oklch(74.76% 0.118 104.5) |
| XYZ | xyz(37.2161, 42.3539, 13.9977) |
| Luminance | 0.4235 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.77
Khaki (survey)
#AAA662
ΔE00 5.71
Vomit
#A2A415
ΔE00 6.72
Olive Yellow
#C2B709
ΔE00 6.73
Muddy Yellow
#BFAC05
ΔE00 6.75
Puke
#A5A502
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B9B151 #5159B9
analogous
#B97D51 #B9B151 #8DB951
triadic
#B9B151 #51B9B1 #B151B9
tetradic
#B9B151 #51B97D #5159B9 #B9518D
square
#B9B151 #51B97D #5159B9 #B9518D
split-complementary
#B9B151 #518DB9 #7D51B9
monochromatic
#666229 #928B3B #B9B151 #CBC57D #DCD8A8
Accessibility & contrast
On white
2.22
#B9B151 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.47
#B9B151 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B9B151
9.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B9B151 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B9B151 | 1.00 | 2.22 | 9.47 | 9.47 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFAB47
Deuteranopia (green-blind)
#C2B056
Tritanopia (blue-blind)
#C5A69C
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #b9b151; /* rgb */ color: rgb(185, 177, 81); /* oklch */ color: oklch(74.8% 0.118 104.5);
Tailwind
colors: {
custom: {
50: '#d0c885',
500: '#b9b151',
950: '#000000',
},
}SCSS
$custom: #b9b151; $custom-light: #d0c885; $custom-dark: #000000;
JSON
{
"hex": "#b9b151",
"rgb": {
"r": 185,
"g": 177,
"b": 81
},
"hsl": {
"h": 55.385,
"s": 42.623,
"l": 52.157
},
"oklch": {
"l": 0.74763,
"c": 0.11833,
"h": 104.5
},
"luminance": 0.42353
}Semantic roles & 50–950 ramp
primary
#B9B151
secondary
#9CA0CA
accent
#5FD255
background
#FDFCF8
surface
#FAF8EF
border
#D3D1CA
text
#14130B
muted
#83827C