#B5A52E#B5A52E
#B5A52E is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.5% C 0.134 H 101.4°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).
Color values
| HEX | #B5A52E |
|---|---|
| RGB | rgb(181, 165, 46) |
| HSL | hsl(53, 59%, 45%) |
| HSV | hsv(53, 75%, 71%) |
| CMYK | cmyk(0%, 8.8%, 74.6%, 29%) |
| CIE-LAB | lab(67.23, -7.29, 59.82) |
| CIE-LCH | lch(67.23, 60.26, 96.95°) |
| OKLab | oklab(71.5% -0.0264 0.1316) |
| OKLCH | oklch(71.5% 0.134 101.4) |
| XYZ | xyz(33.0059, 36.9328, 7.9744) |
| Luminance | 0.3693 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 3.69
Puke
#A5A502
ΔE00 4.78
Brown Yellow
#B29705
ΔE00 5.09
Vomit
#A2A415
ΔE00 5.12
Brownish Yellow
#C9B003
ΔE00 5.36
Olive Yellow
#C2B709
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A52E #2E3EB5
analogous
#B5622E #B5A52E #82B52E
triadic
#B5A52E #2EB5A5 #A52EB5
tetradic
#B5A52E #2EB562 #2E3EB5 #B52E82
square
#B5A52E #2EB562 #2E3EB5 #B52E82
split-complementary
#B5A52E #2E82B5 #622EB5
monochromatic
#534C15 #847922 #B5A52E #D2C24E #DED37F
Accessibility & contrast
On white
2.50
#B5A52E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.39
#B5A52E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A52E
8.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A52E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A52E | 1.00 | 2.50 | 8.39 | 8.39 |
| #FFFFFF | 2.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B5A017
Deuteranopia (green-blind)
#B9A636
Tritanopia (blue-blind)
#C3998E
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #b5a52e; /* rgb */ color: rgb(181, 165, 46); /* oklch */ color: oklch(71.5% 0.134 101.4);
Tailwind
colors: {
custom: {
50: '#cfbf70',
500: '#b5a52e',
950: '#000000',
},
}SCSS
$custom: #b5a52e; $custom-light: #cfbf70; $custom-dark: #000000;
JSON
{
"hex": "#b5a52e",
"rgb": {
"r": 181,
"g": 165,
"b": 46
},
"hsl": {
"h": 52.889,
"s": 59.471,
"l": 44.51
},
"oklch": {
"l": 0.71499,
"c": 0.13424,
"h": 101.4
},
"luminance": 0.36931
}Semantic roles & 50–950 ramp
primary
#B5A52E
secondary
#7881C7
accent
#58E345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B