#B1A151#B1A151
#B1A151 is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.103 H 98.2°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).
Color values
| HEX | #B1A151 |
|---|---|
| RGB | rgb(177, 161, 81) |
| HSL | hsl(50, 38%, 51%) |
| HSV | hsv(50, 54%, 69%) |
| CMYK | cmyk(0%, 9%, 54.2%, 30.6%) |
| CIE-LAB | lab(66.08, -4.67, 43.25) |
| CIE-LCH | lch(66.08, 43.50, 96.16°) |
| OKLab | oklab(70.6% -0.0147 0.1017) |
| OKLCH | oklch(70.6% 0.103 98.2) |
| XYZ | xyz(32.3626, 35.4322, 12.9174) |
| Luminance | 0.3543 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 4.46
Sandy Brown
#C4A661
ΔE00 5.66
Desert
#CCAD60
ΔE00 6.42
Darkkhaki
#BDB76B
ΔE00 6.64
Dark Khaki
#9B8F55
ΔE00 7.08
Brown Yellow
#B29705
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B1A151 #5161B1
analogous
#B17151 #B1A151 #91B151
triadic
#B1A151 #51B1A1 #A151B1
tetradic
#B1A151 #51B171 #5161B1 #B15191
square
#B1A151 #51B171 #5161B1 #B15191
split-complementary
#B1A151 #5191B1 #7151B1
monochromatic
#5E552A #887B3D #B1A151 #C4B87B #D7CFA6
Accessibility & contrast
On white
2.60
#B1A151 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.09
#B1A151 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B1A151
8.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B1A151 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B1A151 | 1.00 | 2.60 | 8.09 | 8.09 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AE9D4A
Deuteranopia (green-blind)
#B3A355
Tritanopia (blue-blind)
#BD978F
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b1a151; /* rgb */ color: rgb(177, 161, 81); /* oklch */ color: oklch(70.6% 0.103 98.2);
Tailwind
colors: {
custom: {
50: '#cabc84',
500: '#b1a151',
950: '#000000',
},
}SCSS
$custom: #b1a151; $custom-light: #cabc84; $custom-dark: #000000;
JSON
{
"hex": "#b1a151",
"rgb": {
"r": 177,
"g": 161,
"b": 81
},
"hsl": {
"h": 50,
"s": 38.095,
"l": 50.588
},
"oklch": {
"l": 0.70603,
"c": 0.10279,
"h": 98.2
},
"luminance": 0.35431
}Semantic roles & 50–950 ramp
primary
#B1A151
secondary
#9AA1C4
accent
#6DCE5A
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#14120B
muted
#82817C