#B4A151#B4A151
#B4A151 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.9% C 0.103 H 96.2°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).
Color values
| HEX | #B4A151 |
|---|---|
| RGB | rgb(180, 161, 81) |
| HSL | hsl(48, 40%, 51%) |
| HSV | hsv(48, 55%, 71%) |
| CMYK | cmyk(0%, 10.6%, 55%, 29.4%) |
| CIE-LAB | lab(66.36, -3.38, 43.64) |
| CIE-LCH | lch(66.36, 43.77, 94.43°) |
| OKLab | oklab(70.88% -0.0112 0.1025) |
| OKLCH | oklch(70.88% 0.103 96.2) |
| XYZ | xyz(33.0537, 35.7885, 12.9498) |
| Luminance | 0.3579 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sandy Brown
#C4A661
ΔE00 4.84
Khaki (survey)
#AAA662
ΔE00 5.22
Desert
#CCAD60
ΔE00 5.65
Darkkhaki
#BDB76B
ΔE00 6.97
Camel (survey)
#C69F59
ΔE00 6.97
Sandstone
#C9AE74
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4A151 #5164B4
analogous
#B46F51 #B4A151 #95B451
triadic
#B4A151 #51B4A1 #A151B4
tetradic
#B4A151 #51B46F #5164B4 #B45195
square
#B4A151 #51B46F #5164B4 #B45195
split-complementary
#B4A151 #5195B4 #6F51B4
monochromatic
#61562A #8C7C3C #B4A151 #C6B87C #D9CFA7
Accessibility & contrast
On white
2.57
#B4A151 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.16
#B4A151 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4A151
8.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4A151 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4A151 | 1.00 | 2.57 | 8.16 | 8.16 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AF9E4A
Deuteranopia (green-blind)
#B4A454
Tritanopia (blue-blind)
#C1978F
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b4a151; /* rgb */ color: rgb(180, 161, 81); /* oklch */ color: oklch(70.9% 0.103 96.2);
Tailwind
colors: {
custom: {
50: '#cdbc84',
500: '#b4a151',
950: '#000000',
},
}SCSS
$custom: #b4a151; $custom-light: #cdbc84; $custom-dark: #000000;
JSON
{
"hex": "#b4a151",
"rgb": {
"r": 180,
"g": 161,
"b": 81
},
"hsl": {
"h": 48.485,
"s": 39.759,
"l": 51.176
},
"oklch": {
"l": 0.70885,
"c": 0.10314,
"h": 96.2
},
"luminance": 0.35787
}Semantic roles & 50–950 ramp
primary
#B4A151
secondary
#9BA3C6
accent
#6FD058
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#14120B
muted
#82817C