#B5A22A#B5A22A
#B5A22A is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.8% C 0.134 H 99.8°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).
Color values
| HEX | #B5A22A |
|---|---|
| RGB | rgb(181, 162, 42) |
| HSL | hsl(52, 62%, 44%) |
| HSV | hsv(52, 77%, 71%) |
| CMYK | cmyk(0%, 10.5%, 76.8%, 29%) |
| CIE-LAB | lab(66.39, -5.88, 60.44) |
| CIE-LCH | lch(66.39, 60.72, 95.55°) |
| OKLab | oklab(70.83% -0.0228 0.1322) |
| OKLCH | oklch(70.83% 0.134 99.8) |
| XYZ | xyz(32.3959, 35.8332, 7.4001) |
| Luminance | 0.3583 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.98
Muddy Yellow
#BFAC05
ΔE00 3.99
Ocher
#BF9B0C
ΔE00 5.14
Puke
#A5A502
ΔE00 5.44
Dark Gold
#B59410
ΔE00 5.46
Brownish Yellow
#C9B003
ΔE00 5.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A22A #2A3DB5
analogous
#B55C2A #B5A22A #82B52A
triadic
#B5A22A #2AB5A2 #A22AB5
tetradic
#B5A22A #2AB55C #2A3DB5 #B52A82
square
#B5A22A #2AB55C #2A3DB5 #B52A82
split-complementary
#B5A22A #2A82B5 #5C2AB5
monochromatic
#524913 #83761E #B5A22A #D4C148 #E0D279
Accessibility & contrast
On white
2.57
#B5A22A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.17
#B5A22A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A22A
8.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A22A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A22A | 1.00 | 2.57 | 8.17 | 8.17 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B29D10
Deuteranopia (green-blind)
#B7A432
Tritanopia (blue-blind)
#C3968B
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b5a22a; /* rgb */ color: rgb(181, 162, 42); /* oklch */ color: oklch(70.8% 0.134 99.8);
Tailwind
colors: {
custom: {
50: '#cfbd6d',
500: '#b5a22a',
950: '#000000',
},
}SCSS
$custom: #b5a22a; $custom-light: #cfbd6d; $custom-dark: #000000;
JSON
{
"hex": "#b5a22a",
"rgb": {
"r": 181,
"g": 162,
"b": 42
},
"hsl": {
"h": 51.799,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.70829,
"c": 0.13411,
"h": 99.8
},
"luminance": 0.35832
}Semantic roles & 50–950 ramp
primary
#B5A22A
secondary
#737EC8
accent
#59E542
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141208
muted
#83817B