#AFAD2E#AFAD2E
#AFAD2E is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.7% C 0.142 H 108.5°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAD2E |
|---|---|
| RGB | rgb(175, 173, 46) |
| HSL | hsl(59, 58%, 43%) |
| HSV | hsv(59, 74%, 69%) |
| CMYK | cmyk(0%, 1.1%, 73.7%, 31.4%) |
| CIE-LAB | lab(68.90, -14.09, 61.21) |
| CIE-LCH | lch(68.90, 62.81, 102.96°) |
| OKLab | oklab(72.7% -0.0452 0.1348) |
| OKLCH | oklch(72.7% 0.142 108.5) |
| XYZ | xyz(33.1172, 39.1994, 8.4060) |
| Luminance | 0.3920 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.10
Vomit
#A2A415
ΔE00 3.18
Mustard Green
#A8B504
ΔE00 4.26
Olive Yellow
#C2B709
ΔE00 5.06
Puke Green
#9AAE07
ΔE00 5.24
Snot
#ACBB0D
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAD2E #2E30AF
analogous
#AF6C2E #AFAD2E #70AF2E
triadic
#AFAD2E #2EAFAD #AD2EAF
tetradic
#AFAD2E #2EAF6C #2E30AF #AF2E70
square
#AFAD2E #2EAF6C #2E30AF #AF2E70
split-complementary
#AFAD2E #2E70AF #6C2EAF
monochromatic
#4E4D15 #7F7D21 #AFAD2E #D0CE4B #DCDB7B
Accessibility & contrast
On white
2.38
#AFAD2E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.84
#AFAD2E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAD2E
8.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAD2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAD2E | 1.00 | 2.38 | 8.84 | 8.84 |
| #FFFFFF | 2.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BBA614
Deuteranopia (green-blind)
#BDAA38
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #afad2e; /* rgb */ color: rgb(175, 173, 46); /* oklch */ color: oklch(72.7% 0.142 108.5);
Tailwind
colors: {
custom: {
50: '#cac570',
500: '#afad2e',
950: '#000000',
},
}SCSS
$custom: #afad2e; $custom-light: #cac570; $custom-dark: #000000;
JSON
{
"hex": "#afad2e",
"rgb": {
"r": 175,
"g": 173,
"b": 46
},
"hsl": {
"h": 59.07,
"s": 58.371,
"l": 43.333
},
"oklch": {
"l": 0.72702,
"c": 0.14219,
"h": 108.5
},
"luminance": 0.39198
}Semantic roles & 50–950 ramp
primary
#AFAD2E
secondary
#7475C5
accent
#49E246
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B