#AFE252#AFE252
#AFE252 is a very light, vivid yellow-green. Relative luminance 0.641; OKLCH L 85.0% C 0.179 H 126.6°. Best body text is #000000 at 13.82:1 contrast (WCAG AA passes).
Color values
| HEX | #AFE252 |
|---|---|
| RGB | rgb(175, 226, 82) |
| HSL | hsl(81, 71%, 60%) |
| HSV | hsv(81, 64%, 89%) |
| CMYK | cmyk(22.6%, 0%, 63.7%, 11.4%) |
| CIE-LAB | lab(84.03, -37.45, 62.87) |
| CIE-LCH | lch(84.03, 73.18, 120.78°) |
| OKLab | oklab(84.95% -0.1068 0.1438) |
| OKLCH | oklch(84.95% 0.179 126.6) |
| XYZ | xyz(46.3986, 64.1151, 17.9120) |
| Luminance | 0.6412 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Kiwi
#9CEF43
ΔE00 4.51
Yellowish Green
#B0DD16
ΔE00 4.59
Kiwi Green
#8EE53F
ΔE00 4.64
Yellowgreen
#9ACD32
ΔE00 5.27
Pear
#CBF85F
ΔE00 5.32
Yellowy Green
#BFF128
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFE252 #8552E2
analogous
#E2CD52 #AFE252 #67E252
triadic
#AFE252 #52AFE2 #E252AF
tetradic
#AFE252 #52E2CD #8552E2 #E25267
square
#AFE252 #52E2CD #8552E2 #E25267
split-complementary
#AFE252 #5267E2 #CD52E2
monochromatic
#709F1B #95D323 #AFE252 #C7EB86 #DFF4BB
Accessibility & contrast
On white
1.52
#AFE252 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.82
#AFE252 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFE252
13.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFE252 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFE252 | 1.00 | 1.52 | 13.82 | 13.82 |
| #FFFFFF | 1.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#EDD440
Deuteranopia (green-blind)
#E6D15D
Tritanopia (blue-blind)
#B5D8C4
Achromatopsia (no color)
#D2D2D2
Design tokens & code
CSS
--color: #afe252; /* rgb */ color: rgb(175, 226, 82); /* oklch */ color: oklch(85.0% 0.179 126.6);
Tailwind
colors: {
custom: {
50: '#caeb89',
500: '#afe252',
950: '#000000',
},
}SCSS
$custom: #afe252; $custom-light: #caeb89; $custom-dark: #000000;
JSON
{
"hex": "#afe252",
"rgb": {
"r": 175,
"g": 226,
"b": 82
},
"hsl": {
"h": 81.25,
"s": 71.287,
"l": 60.392
},
"oklch": {
"l": 0.84951,
"c": 0.17913,
"h": 126.6
},
"luminance": 0.64116
}Semantic roles & 50–950 ramp
primary
#AFE252
secondary
#5C36A2
accent
#12D357
background
#FEFEFC
surface
#FBFDF4
border
#D4D5CE
text
#14160C
muted
#83847F