#AFC42F#AFC42F
#AFC42F is a light, vivid yellow. Relative luminance 0.488; OKLCH L 77.9% C 0.166 H 117.6°. Best body text is #000000 at 10.76:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC42F |
|---|---|
| RGB | rgb(175, 196, 47) |
| HSL | hsl(68, 61%, 48%) |
| HSV | hsv(68, 76%, 77%) |
| CMYK | cmyk(10.7%, 0%, 76%, 23.1%) |
| CIE-LAB | lab(75.33, -25.52, 66.90) |
| CIE-LCH | lch(75.33, 71.60, 110.88°) |
| OKLab | oklab(77.86% -0.0769 0.147) |
| OKLCH | oklch(77.86% 0.166 117.6) |
| XYZ | xyz(37.9331, 48.7995, 10.1097) |
| Luminance | 0.4880 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.01
Gross Green
#A0BF16
ΔE00 2.67
Bile
#B5C306
ΔE00 2.86
Baby Puke Green
#B6C406
ΔE00 2.93
Snot
#ACBB0D
ΔE00 3.00
Snot Green
#9DC100
ΔE00 3.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC42F #442FC4
analogous
#C48E2F #AFC42F #65C42F
triadic
#AFC42F #2FAFC4 #C42FAF
tetradic
#AFC42F #2FC48E #442FC4 #C42F65
square
#AFC42F #2FC48E #442FC4 #C42F65
split-complementary
#AFC42F #2F65C4 #8E2FC4
monochromatic
#576117 #839323 #AFC42F #C5D759 #D7E38A
Accessibility & contrast
On white
1.95
#AFC42F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.76
#AFC42F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC42F
10.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC42F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC42F | 1.00 | 1.95 | 10.76 | 10.76 |
| #FFFFFF | 1.95 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D1B906
Deuteranopia (green-blind)
#CFBA3D
Tritanopia (blue-blind)
#BAB9A8
Achromatopsia (no color)
#B9B9B9
Design tokens & code
CSS
--color: #afc42f; /* rgb */ color: rgb(175, 196, 47); /* oklch */ color: oklch(77.9% 0.166 117.6);
Tailwind
colors: {
custom: {
50: '#cbd574',
500: '#afc42f',
950: '#000000',
},
}SCSS
$custom: #afc42f; $custom-light: #cbd574; $custom-dark: #000000;
JSON
{
"hex": "#afc42f",
"rgb": {
"r": 175,
"g": 196,
"b": 47
},
"hsl": {
"h": 68.456,
"s": 61.317,
"l": 47.647
},
"oklch": {
"l": 0.77858,
"c": 0.1659,
"h": 117.6
},
"luminance": 0.48799
}Semantic roles & 50–950 ramp
primary
#AFC42F
secondary
#8C82CD
accent
#43E45A
background
#FCFDF7
surface
#F9FAED
border
#D2D3C8
text
#141409
muted
#82837B