#B8A252#B8A252
#B8A252 is a light, moderate yellow. Relative luminance 0.366; OKLCH L 71.5% C 0.104 H 94.3°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).
Color values
| HEX | #B8A252 |
|---|---|
| RGB | rgb(184, 162, 82) |
| HSL | hsl(47, 42%, 52%) |
| HSV | hsv(47, 55%, 72%) |
| CMYK | cmyk(0%, 12%, 55.4%, 27.8%) |
| CIE-LAB | lab(67.01, -2.12, 44.00) |
| CIE-LCH | lch(67.01, 44.05, 92.76°) |
| OKLab | oklab(71.49% -0.0077 0.1033) |
| OKLCH | oklch(71.49% 0.104 94.3) |
| XYZ | xyz(34.2118, 36.6418, 13.2515) |
| Luminance | 0.3664 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sandy Brown
#C4A661
ΔE00 3.93
Desert
#CCAD60
ΔE00 4.70
Khaki (survey)
#AAA662
ΔE00 5.99
Camel (survey)
#C69F59
ΔE00 6.05
Sand Brown
#CBA560
ΔE00 6.14
Sandstone
#C9AE74
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B8A252 #5268B8
analogous
#B86F52 #B8A252 #9BB852
triadic
#B8A252 #52B8A2 #A252B8
tetradic
#B8A252 #52B86F #5268B8 #B8529B
square
#B8A252 #52B86F #5268B8 #B8529B
split-complementary
#B8A252 #529BB8 #6F52B8
monochromatic
#66592A #917F3C #B8A252 #CAB97D #DCD1A9
Accessibility & contrast
On white
2.52
#B8A252 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.33
#B8A252 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B8A252
8.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B8A252 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B8A252 | 1.00 | 2.52 | 8.33 | 8.33 |
| #FFFFFF | 2.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B09F4B
Deuteranopia (green-blind)
#B6A655
Tritanopia (blue-blind)
#C59790
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #b8a252; /* rgb */ color: rgb(184, 162, 82); /* oklch */ color: oklch(71.5% 0.104 94.3);
Tailwind
colors: {
custom: {
50: '#d0bd85',
500: '#b8a252',
950: '#000000',
},
}SCSS
$custom: #b8a252; $custom-light: #d0bd85; $custom-dark: #000000;
JSON
{
"hex": "#b8a252",
"rgb": {
"r": 184,
"g": 162,
"b": 82
},
"hsl": {
"h": 47.059,
"s": 41.803,
"l": 52.157
},
"oklch": {
"l": 0.7149,
"c": 0.10362,
"h": 94.3
},
"luminance": 0.3664
}Semantic roles & 50–950 ramp
primary
#B8A252
secondary
#9DA6C9
accent
#71D256
background
#FDFBF8
surface
#FAF6EF
border
#D3D0CA
text
#14120B
muted
#83817C