#B5A042#B5A042
#B5A042 is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.116 H 96.7°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).
Color values
| HEX | #B5A042 |
|---|---|
| RGB | rgb(181, 160, 66) |
| HSL | hsl(49, 47%, 48%) |
| HSV | hsv(49, 64%, 71%) |
| CMYK | cmyk(0%, 11.6%, 63.5%, 29%) |
| CIE-LAB | lab(66.03, -3.53, 50.42) |
| CIE-LCH | lch(66.03, 50.54, 94.01°) |
| OKLab | oklab(70.6% -0.0135 0.1152) |
| OKLCH | oklch(70.6% 0.116 96.7) |
| XYZ | xyz(32.6117, 35.3603, 10.2606) |
| Luminance | 0.3536 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 5.15
Dark Gold
#B59410
ΔE00 5.71
Ocher
#BF9B0C
ΔE00 5.83
Sandy Brown
#C4A661
ΔE00 5.95
Baby Shit Brown
#AD900D
ΔE00 6.12
Baby Poo
#AB9004
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A042 #4257B5
analogous
#B56642 #B5A042 #90B542
triadic
#B5A042 #42B5A0 #A042B5
tetradic
#B5A042 #42B566 #4257B5 #B54290
square
#B5A042 #42B566 #4257B5 #B54290
split-complementary
#B5A042 #4290B5 #6642B5
monochromatic
#5B5121 #887832 #B5A042 #C9B86B #D9CD98
Accessibility & contrast
On white
2.60
#B5A042 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.07
#B5A042 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A042
8.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A042 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A042 | 1.00 | 2.60 | 8.07 | 8.07 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AF9C37
Deuteranopia (green-blind)
#B5A347
Tritanopia (blue-blind)
#C3958C
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #b5a042; /* rgb */ color: rgb(181, 160, 66); /* oklch */ color: oklch(70.6% 0.116 96.7);
Tailwind
colors: {
custom: {
50: '#cebb7a',
500: '#b5a042',
950: '#000000',
},
}SCSS
$custom: #b5a042; $custom-light: #cebb7a; $custom-dark: #000000;
JSON
{
"hex": "#b5a042",
"rgb": {
"r": 181,
"g": 160,
"b": 66
},
"hsl": {
"h": 49.043,
"s": 46.559,
"l": 48.431
},
"oklch": {
"l": 0.70597,
"c": 0.11595,
"h": 96.7
},
"luminance": 0.35359
}Semantic roles & 50–950 ramp
primary
#B5A042
secondary
#8E98C5
accent
#6AD652
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B