#AFC21F#AFC21F
#AFC21F is a light, vivid yellow. Relative luminance 0.478; OKLCH L 77.3% C 0.171 H 116.8°. Best body text is #000000 at 10.56:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC21F |
|---|---|
| RGB | rgb(175, 194, 31) |
| HSL | hsl(67, 72%, 44%) |
| HSV | hsv(67, 84%, 76%) |
| CMYK | cmyk(9.8%, 0%, 84%, 23.9%) |
| CIE-LAB | lab(74.70, -25.13, 70.69) |
| CIE-LCH | lch(74.70, 75.03, 109.57°) |
| OKLab | oklab(77.33% -0.0769 0.1524) |
| OKLCH | oklch(77.33% 0.171 116.8) |
| XYZ | xyz(37.2193, 47.7970, 8.5611) |
| Luminance | 0.4780 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Bile
#B5C306
ΔE00 1.79
Baby Puke Green
#B6C406
ΔE00 1.92
Snot
#ACBB0D
ΔE00 1.97
Pea
#A4BF20
ΔE00 2.17
Gross Green
#A0BF16
ΔE00 2.77
Green Yellow
#B5CE08
ΔE00 3.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC21F #321FC2
analogous
#C2841F #AFC21F #5EC21F
triadic
#AFC21F #1FAFC2 #C21FAF
tetradic
#AFC21F #1FC284 #321FC2 #C21F5E
square
#AFC21F #1FC284 #321FC2 #C21F5E
split-complementary
#AFC21F #1F5EC2 #841FC2
monochromatic
#50580E #7F8D17 #AFC21F #CDE03E #DBE973
Accessibility & contrast
On white
1.99
#AFC21F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.56
#AFC21F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC21F
10.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC21F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC21F | 1.00 | 1.99 | 10.56 | 10.56 |
| #FFFFFF | 1.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0B700
Deuteranopia (green-blind)
#CEB932
Tritanopia (blue-blind)
#BBB6A6
Achromatopsia (no color)
#B8B8B8
Design tokens & code
CSS
--color: #afc21f; /* rgb */ color: rgb(175, 194, 31); /* oklch */ color: oklch(77.3% 0.171 116.8);
Tailwind
colors: {
custom: {
50: '#cbd46d',
500: '#afc21f',
950: '#000000',
},
}SCSS
$custom: #afc21f; $custom-light: #cbd46d; $custom-dark: #000000;
JSON
{
"hex": "#afc21f",
"rgb": {
"r": 175,
"g": 194,
"b": 31
},
"hsl": {
"h": 66.994,
"s": 72.444,
"l": 44.118
},
"oklch": {
"l": 0.7733,
"c": 0.17075,
"h": 116.8
},
"luminance": 0.47796
}Semantic roles & 50–950 ramp
primary
#AFC21F
secondary
#796DCF
accent
#39EF4E
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141408
muted
#83827B