#AFCC40#AFCC40
#AFCC40 is a light, vivid yellow-green. Relative luminance 0.527; OKLCH L 79.8% C 0.165 H 120.4°. Best body text is #000000 at 11.53:1 contrast (WCAG AA passes).
Color values
| HEX | #AFCC40 |
|---|---|
| RGB | rgb(175, 204, 64) |
| HSL | hsl(72, 58%, 53%) |
| HSV | hsv(72, 69%, 80%) |
| CMYK | cmyk(14.2%, 0%, 68.6%, 20%) |
| CIE-LAB | lab(77.68, -28.48, 63.29) |
| CIE-LCH | lch(77.68, 69.41, 114.23°) |
| OKLab | oklab(79.78% -0.0836 0.1422) |
| OKLCH | oklch(79.78% 0.165 120.4) |
| XYZ | xyz(40.1981, 52.6700, 12.8981) |
| Luminance | 0.5267 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Pea
#A4BF20
ΔE00 3.74
Yellowgreen
#9ACD32
ΔE00 3.78
Green Yellow
#B5CE08
ΔE00 3.90
Gross Green
#A0BF16
ΔE00 4.02
Slime Green
#99CC04
ΔE00 4.18
Snot Green
#9DC100
ΔE00 4.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFCC40 #5D40CC
analogous
#CCA340 #AFCC40 #69CC40
triadic
#AFCC40 #40AFCC #CC40AF
tetradic
#AFCC40 #40CCA3 #5D40CC #CC4069
square
#AFCC40 #40CCA3 #5D40CC #CC4069
split-complementary
#AFCC40 #4069CC #A340CC
monochromatic
#61731F #8AA32C #AFCC40 #C3D970 #D7E6A1
Accessibility & contrast
On white
1.82
#AFCC40 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.53
#AFCC40 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFCC40
11.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFCC40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFCC40 | 1.00 | 1.82 | 11.53 | 11.53 |
| #FFFFFF | 1.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D9C02A
Deuteranopia (green-blind)
#D5C04B
Tritanopia (blue-blind)
#B9C1B0
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #afcc40; /* rgb */ color: rgb(175, 204, 64); /* oklch */ color: oklch(79.8% 0.165 120.4);
Tailwind
colors: {
custom: {
50: '#cadb7d',
500: '#afcc40',
950: '#000000',
},
}SCSS
$custom: #afcc40; $custom-light: #cadb7d; $custom-dark: #000000;
JSON
{
"hex": "#afcc40",
"rgb": {
"r": 175,
"g": 204,
"b": 64
},
"hsl": {
"h": 72.429,
"s": 57.851,
"l": 52.549
},
"oklch": {
"l": 0.79784,
"c": 0.16495,
"h": 120.4
},
"luminance": 0.5267
}Semantic roles & 50–950 ramp
primary
#AFCC40
secondary
#43347C
accent
#47E167
background
#FEFEFB
surface
#FBFBF2
border
#D4D4CC
text
#14150A
muted
#83847D