#B5AF2A#B5AF2A
#B5AF2A is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.6% C 0.145 H 106.8°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).
Color values
| HEX | #B5AF2A |
|---|---|
| RGB | rgb(181, 175, 42) |
| HSL | hsl(57, 62%, 44%) |
| HSV | hsv(57, 77%, 71%) |
| CMYK | cmyk(0%, 3.3%, 76.8%, 29%) |
| CIE-LAB | lab(69.93, -12.68, 63.69) |
| CIE-LCH | lch(69.93, 64.94, 101.26°) |
| OKLab | oklab(73.65% -0.042 0.1391) |
| OKLCH | oklch(73.65% 0.145 106.8) |
| XYZ | xyz(34.8054, 40.6521, 8.2033) |
| Luminance | 0.4065 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.68
Puke
#A5A502
ΔE00 3.74
Muddy Yellow
#BFAC05
ΔE00 4.03
Vomit
#A2A415
ΔE00 4.19
Puke Yellow
#C2BE0E
ΔE00 4.69
Mustard Green
#A8B504
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5AF2A #2A30B5
analogous
#B5692A #B5AF2A #75B52A
triadic
#B5AF2A #2AB5AF #AF2AB5
tetradic
#B5AF2A #2AB569 #2A30B5 #B52A75
square
#B5AF2A #2AB569 #2A30B5 #B52A75
split-complementary
#B5AF2A #2A75B5 #692AB5
monochromatic
#524F13 #837F1E #B5AF2A #D4CE48 #E0DC79
Accessibility & contrast
On white
2.30
#B5AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.13
#B5AF2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5AF2A
9.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5AF2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5AF2A | 1.00 | 2.30 | 9.13 | 9.13 |
| #FFFFFF | 2.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA806
Deuteranopia (green-blind)
#C1AD35
Tritanopia (blue-blind)
#C3A396
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #b5af2a; /* rgb */ color: rgb(181, 175, 42); /* oklch */ color: oklch(73.6% 0.145 106.8);
Tailwind
colors: {
custom: {
50: '#cfc66f',
500: '#b5af2a',
950: '#000000',
},
}SCSS
$custom: #b5af2a; $custom-light: #cfc66f; $custom-dark: #000000;
JSON
{
"hex": "#b5af2a",
"rgb": {
"r": 181,
"g": 175,
"b": 42
},
"hsl": {
"h": 57.41,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.73645,
"c": 0.14527,
"h": 106.8
},
"luminance": 0.40651
}Semantic roles & 50–950 ramp
primary
#B5AF2A
secondary
#7376C8
accent
#49E542
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B