#AFC040#AFC040
#AFC040 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.1% C 0.151 H 116.6°. Best body text is #000000 at 10.44:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC040 |
|---|---|
| RGB | rgb(175, 192, 64) |
| HSL | hsl(68, 50%, 50%) |
| HSV | hsv(68, 67%, 75%) |
| CMYK | cmyk(8.9%, 0%, 66.7%, 24.7%) |
| CIE-LAB | lab(74.31, -22.68, 59.86) |
| CIE-LCH | lch(74.31, 64.01, 110.75°) |
| OKLab | oklab(77.07% -0.0675 0.135) |
| OKLCH | oklch(77.07% 0.151 116.6) |
| XYZ | xyz(37.4551, 47.1839, 11.9838) |
| Luminance | 0.4718 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.85
Sick Green
#9DB92C
ΔE00 3.37
Gross Green
#A0BF16
ΔE00 3.58
Snot
#ACBB0D
ΔE00 3.59
Booger
#9BB53C
ΔE00 4.18
Bright Olive
#9CBB04
ΔE00 4.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC040 #5140C0
analogous
#C09140 #AFC040 #6FC040
triadic
#AFC040 #40AFC0 #C040AF
tetradic
#AFC040 #40C091 #5140C0 #C0406F
square
#AFC040 #40C091 #5140C0 #C0406F
split-complementary
#AFC040 #406FC0 #9140C0
monochromatic
#5C6421 #859230 #AFC040 #C2CF6E #D6DE9C
Accessibility & contrast
On white
2.01
#AFC040 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.44
#AFC040 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC040
10.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC040 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC040 | 1.00 | 2.01 | 10.44 | 10.44 |
| #FFFFFF | 2.01 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.44 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.44 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CDB62E
Deuteranopia (green-blind)
#CBB849
Tritanopia (blue-blind)
#BAB5A6
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #afc040; /* rgb */ color: rgb(175, 192, 64); /* oklch */ color: oklch(77.1% 0.151 116.6);
Tailwind
colors: {
custom: {
50: '#cad27c',
500: '#afc040',
950: '#000000',
},
}SCSS
$custom: #afc040; $custom-light: #cad27c; $custom-dark: #000000;
JSON
{
"hex": "#afc040",
"rgb": {
"r": 175,
"g": 192,
"b": 64
},
"hsl": {
"h": 67.969,
"s": 50.394,
"l": 50.196
},
"oklch": {
"l": 0.77072,
"c": 0.1509,
"h": 116.6
},
"luminance": 0.47183
}Semantic roles & 50–950 ramp
primary
#AFC040
secondary
#9991CB
accent
#4EDA60
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C