#A7AF21#A7AF21
#A7AF21 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.4% C 0.153 H 113.1°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).
Color values
| HEX | #A7AF21 |
|---|---|
| RGB | rgb(167, 175, 33) |
| HSL | hsl(63, 68%, 41%) |
| HSV | hsv(63, 81%, 69%) |
| CMYK | cmyk(4.6%, 0%, 81.1%, 31.4%) |
| CIE-LAB | lab(68.74, -19.10, 64.85) |
| CIE-LCH | lch(68.74, 67.60, 106.41°) |
| OKLab | oklab(72.4% -0.0598 0.1405) |
| OKLCH | oklch(72.4% 0.153 113.1) |
| XYZ | xyz(31.5419, 38.9860, 7.3020) |
| Luminance | 0.3898 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.24
Puke Green
#9AAE07
ΔE00 2.80
Vomit
#A2A415
ΔE00 3.28
Puke
#A5A502
ΔE00 3.42
Snot
#ACBB0D
ΔE00 3.59
Barf Green
#94AC02
ΔE00 3.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A7AF21 #2921AF
analogous
#AF7021 #A7AF21 #60AF21
triadic
#A7AF21 #21A7AF #AF21A7
tetradic
#A7AF21 #21AF70 #2921AF #AF2160
square
#A7AF21 #21AF70 #2921AF #AF2160
split-complementary
#A7AF21 #2160AF #7021AF
monochromatic
#45480E #767C17 #A7AF21 #D0D934 #DCE368
Accessibility & contrast
On white
2.39
#A7AF21 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.80
#A7AF21 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A7AF21
8.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A7AF21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A7AF21 | 1.00 | 2.39 | 8.80 | 8.80 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BDA92F
Tritanopia (blue-blind)
#B3A496
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #a7af21; /* rgb */ color: rgb(167, 175, 33); /* oklch */ color: oklch(72.4% 0.153 113.1);
Tailwind
colors: {
custom: {
50: '#c5c66b',
500: '#a7af21',
950: '#000000',
},
}SCSS
$custom: #a7af21; $custom-light: #c5c66b; $custom-dark: #000000;
JSON
{
"hex": "#a7af21",
"rgb": {
"r": 167,
"g": 175,
"b": 33
},
"hsl": {
"h": 63.38,
"s": 68.269,
"l": 40.784
},
"oklch": {
"l": 0.72399,
"c": 0.1527,
"h": 113.1
},
"luminance": 0.38985
}Semantic roles & 50–950 ramp
primary
#A7AF21
secondary
#6964C8
accent
#3DEB47
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A