#B5A72A#B5A72A
#B5A72A is a light, vivid yellow. Relative luminance 0.376; OKLCH L 71.9% C 0.138 H 102.7°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).
Color values
| HEX | #B5A72A |
|---|---|
| RGB | rgb(181, 167, 42) |
| HSL | hsl(54, 62%, 44%) |
| HSV | hsv(54, 77%, 71%) |
| CMYK | cmyk(0%, 7.7%, 76.8%, 29%) |
| CIE-LAB | lab(67.75, -8.52, 61.69) |
| CIE-LCH | lch(67.75, 62.27, 97.86°) |
| OKLab | oklab(71.91% -0.0303 0.1348) |
| OKLCH | oklch(71.91% 0.138 102.7) |
| XYZ | xyz(33.2942, 37.6298, 7.6996) |
| Luminance | 0.3763 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 3.23
Puke
#A5A502
ΔE00 4.19
Vomit
#A2A415
ΔE00 4.63
Brownish Yellow
#C9B003
ΔE00 5.07
Olive Yellow
#C2B709
ΔE00 5.22
Brown Yellow
#B29705
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A72A #2A38B5
analogous
#B5612A #B5A72A #7DB52A
triadic
#B5A72A #2AB5A7 #A72AB5
tetradic
#B5A72A #2AB561 #2A38B5 #B52A7D
square
#B5A72A #2AB561 #2A38B5 #B52A7D
split-complementary
#B5A72A #2A7DB5 #612AB5
monochromatic
#524B13 #83791E #B5A72A #D4C648 #E0D679
Accessibility & contrast
On white
2.46
#B5A72A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.53
#B5A72A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A72A
8.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A72A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A72A | 1.00 | 2.46 | 8.53 | 8.53 |
| #FFFFFF | 2.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B7A20D
Deuteranopia (green-blind)
#BBA833
Tritanopia (blue-blind)
#C39B8F
Achromatopsia (no color)
#A5A5A5
Design tokens & code
CSS
--color: #b5a72a; /* rgb */ color: rgb(181, 167, 42); /* oklch */ color: oklch(71.9% 0.138 102.7);
Tailwind
colors: {
custom: {
50: '#cfc06e',
500: '#b5a72a',
950: '#000000',
},
}SCSS
$custom: #b5a72a; $custom-light: #cfc06e; $custom-dark: #000000;
JSON
{
"hex": "#b5a72a",
"rgb": {
"r": 181,
"g": 167,
"b": 42
},
"hsl": {
"h": 53.957,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.71905,
"c": 0.13817,
"h": 102.7
},
"luminance": 0.37628
}Semantic roles & 50–950 ramp
primary
#B5A72A
secondary
#737BC8
accent
#53E542
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B