#B5A545#B5A545
#B5A545 is a light, moderate yellow. Relative luminance 0.372; OKLCH L 71.7% C 0.118 H 99.9°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).
Color values
| HEX | #B5A545 |
|---|---|
| RGB | rgb(181, 165, 69) |
| HSL | hsl(51, 45%, 49%) |
| HSV | hsv(51, 62%, 71%) |
| CMYK | cmyk(0%, 8.8%, 61.9%, 29%) |
| CIE-LAB | lab(67.40, -5.99, 50.55) |
| CIE-LCH | lch(67.40, 50.91, 96.76°) |
| OKLab | oklab(71.69% -0.0202 0.1159) |
| OKLCH | oklch(71.69% 0.118 99.9) |
| XYZ | xyz(33.5867, 37.1651, 11.0335) |
| Luminance | 0.3716 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 5.95
Muddy Yellow
#BFAC05
ΔE00 5.97
Brown Yellow
#B29705
ΔE00 6.34
Vomit
#A2A415
ΔE00 6.44
Puke
#A5A502
ΔE00 6.51
Darkkhaki
#BDB76B
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A545 #4555B5
analogous
#B56D45 #B5A545 #8DB545
triadic
#B5A545 #45B5A5 #A545B5
tetradic
#B5A545 #45B56D #4555B5 #B5458D
square
#B5A545 #45B56D #4555B5 #B5458D
split-complementary
#B5A545 #458DB5 #6D45B5
monochromatic
#5C5423 #897D34 #B5A545 #C8BB6F #D9D09B
Accessibility & contrast
On white
2.49
#B5A545 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.43
#B5A545 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A545
8.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A545 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A545 | 1.00 | 2.49 | 8.43 | 8.43 |
| #FFFFFF | 2.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B4A13A
Deuteranopia (green-blind)
#B8A74A
Tritanopia (blue-blind)
#C29A90
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #b5a545; /* rgb */ color: rgb(181, 165, 69); /* oklch */ color: oklch(71.7% 0.118 99.9);
Tailwind
colors: {
custom: {
50: '#cebf7d',
500: '#b5a545',
950: '#000000',
},
}SCSS
$custom: #b5a545; $custom-light: #cebf7d; $custom-dark: #000000;
JSON
{
"hex": "#b5a545",
"rgb": {
"r": 181,
"g": 165,
"b": 69
},
"hsl": {
"h": 51.429,
"s": 44.8,
"l": 49.02
},
"oklch": {
"l": 0.71693,
"c": 0.11763,
"h": 99.9
},
"luminance": 0.37164
}Semantic roles & 50–950 ramp
primary
#B5A545
secondary
#9198C5
accent
#66D553
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#14120A
muted
#83817C