#B5A42A#B5A42A
#B5A42A is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.3% C 0.136 H 101.0°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).
Color values
| HEX | #B5A42A |
|---|---|
| RGB | rgb(181, 164, 42) |
| HSL | hsl(53, 62%, 44%) |
| HSV | hsv(53, 77%, 71%) |
| CMYK | cmyk(0%, 9.4%, 76.8%, 29%) |
| CIE-LAB | lab(66.93, -6.93, 60.94) |
| CIE-LCH | lch(66.93, 61.33, 96.49°) |
| OKLab | oklab(71.26% -0.0258 0.1332) |
| OKLCH | oklch(71.26% 0.136 101) |
| XYZ | xyz(32.7510, 36.5434, 7.5185) |
| Luminance | 0.3654 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 3.57
Brown Yellow
#B29705
ΔE00 4.65
Puke
#A5A502
ΔE00 4.88
Brownish Yellow
#C9B003
ΔE00 5.25
Vomit
#A2A415
ΔE00 5.28
Ocher
#BF9B0C
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A42A #2A3BB5
analogous
#B55E2A #B5A42A #80B52A
triadic
#B5A42A #2AB5A4 #A42AB5
tetradic
#B5A42A #2AB55E #2A3BB5 #B52A80
square
#B5A42A #2AB55E #2A3BB5 #B52A80
split-complementary
#B5A42A #2A80B5 #5E2AB5
monochromatic
#524A13 #83771E #B5A42A #D4C348 #E0D379
Accessibility & contrast
On white
2.53
#B5A42A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.31
#B5A42A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A42A
8.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A42A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A42A | 1.00 | 2.53 | 8.31 | 8.31 |
| #FFFFFF | 2.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B49F0F
Deuteranopia (green-blind)
#B9A633
Tritanopia (blue-blind)
#C3988D
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #b5a42a; /* rgb */ color: rgb(181, 164, 42); /* oklch */ color: oklch(71.3% 0.136 101.0);
Tailwind
colors: {
custom: {
50: '#cfbe6e',
500: '#b5a42a',
950: '#000000',
},
}SCSS
$custom: #b5a42a; $custom-light: #cfbe6e; $custom-dark: #000000;
JSON
{
"hex": "#b5a42a",
"rgb": {
"r": 181,
"g": 164,
"b": 42
},
"hsl": {
"h": 52.662,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.71259,
"c": 0.13569,
"h": 101
},
"luminance": 0.36542
}Semantic roles & 50–950 ramp
primary
#B5A42A
secondary
#737DC8
accent
#56E542
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B