#A5AF21#A5AF21
#A5AF21 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.2% C 0.153 H 113.9°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).
Color values
| HEX | #A5AF21 |
|---|---|
| RGB | rgb(165, 175, 33) |
| HSL | hsl(64, 68%, 41%) |
| HSV | hsv(64, 81%, 69%) |
| CMYK | cmyk(5.7%, 0%, 81.1%, 31.4%) |
| CIE-LAB | lab(68.58, -19.96, 64.65) |
| CIE-LCH | lch(68.58, 67.66, 107.16°) |
| OKLab | oklab(72.24% -0.0621 0.1402) |
| OKLCH | oklch(72.24% 0.153 113.9) |
| XYZ | xyz(31.1225, 38.7697, 7.2824) |
| Luminance | 0.3877 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.22
Puke Green
#9AAE07
ΔE00 2.36
Barf Green
#94AC02
ΔE00 3.41
Vomit
#A2A415
ΔE00 3.44
Snot
#ACBB0D
ΔE00 3.57
Pea Soup Green
#94A617
ΔE00 3.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A5AF21 #2B21AF
analogous
#AF7221 #A5AF21 #5EAF21
triadic
#A5AF21 #21A5AF #AF21A5
tetradic
#A5AF21 #21AF72 #2B21AF #AF215E
square
#A5AF21 #21AF72 #2B21AF #AF215E
split-complementary
#A5AF21 #215EAF #7221AF
monochromatic
#44480E #747C17 #A5AF21 #CDD934 #DAE368
Accessibility & contrast
On white
2.40
#A5AF21 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.75
#A5AF21 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A5AF21
8.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A5AF21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A5AF21 | 1.00 | 2.40 | 8.75 | 8.75 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCA600
Deuteranopia (green-blind)
#BCA92F
Tritanopia (blue-blind)
#B0A496
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #a5af21; /* rgb */ color: rgb(165, 175, 33); /* oklch */ color: oklch(72.2% 0.153 113.9);
Tailwind
colors: {
custom: {
50: '#c4c66b',
500: '#a5af21',
950: '#000000',
},
}SCSS
$custom: #a5af21; $custom-light: #c4c66b; $custom-dark: #000000;
JSON
{
"hex": "#a5af21",
"rgb": {
"r": 165,
"g": 175,
"b": 33
},
"hsl": {
"h": 64.225,
"s": 68.269,
"l": 40.784
},
"oklch": {
"l": 0.72235,
"c": 0.15329,
"h": 113.9
},
"luminance": 0.38769
}Semantic roles & 50–950 ramp
primary
#A5AF21
secondary
#6B64C8
accent
#3DEB49
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A