#AFC140#AFC140
#AFC140 is a light, vivid yellow. Relative luminance 0.476; OKLCH L 77.3% C 0.152 H 116.9°. Best body text is #000000 at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC140 |
|---|---|
| RGB | rgb(175, 193, 64) |
| HSL | hsl(68, 51%, 50%) |
| HSV | hsv(68, 67%, 76%) |
| CMYK | cmyk(9.3%, 0%, 66.8%, 24.3%) |
| CIE-LAB | lab(74.59, -23.17, 60.14) |
| CIE-LCH | lch(74.59, 64.45, 111.07°) |
| OKLab | oklab(77.3% -0.0689 0.1356) |
| OKLCH | oklch(77.3% 0.152 116.9) |
| XYZ | xyz(37.6754, 47.6245, 12.0572) |
| Luminance | 0.4762 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.76
Sick Green
#9DB92C
ΔE00 3.39
Gross Green
#A0BF16
ΔE00 3.48
Snot
#ACBB0D
ΔE00 3.69
Bright Olive
#9CBB04
ΔE00 4.17
Bile
#B5C306
ΔE00 4.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC140 #5240C1
analogous
#C19240 #AFC140 #6EC140
triadic
#AFC140 #40AFC1 #C140AF
tetradic
#AFC140 #40C192 #5240C1 #C1406E
square
#AFC140 #40C192 #5240C1 #C1406E
split-complementary
#AFC140 #406EC1 #9240C1
monochromatic
#5C6621 #869430 #AFC140 #C2D06E #D6DF9C
Accessibility & contrast
On white
2.00
#AFC140 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.52
#AFC140 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC140
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC140 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC140 | 1.00 | 2.00 | 10.52 | 10.52 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.52 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.52 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CEB72D
Deuteranopia (green-blind)
#CCB849
Tritanopia (blue-blind)
#BAB6A7
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #afc140; /* rgb */ color: rgb(175, 193, 64); /* oklch */ color: oklch(77.3% 0.152 116.9);
Tailwind
colors: {
custom: {
50: '#cad37c',
500: '#afc140',
950: '#000000',
},
}SCSS
$custom: #afc140; $custom-light: #cad37c; $custom-dark: #000000;
JSON
{
"hex": "#afc140",
"rgb": {
"r": 175,
"g": 193,
"b": 64
},
"hsl": {
"h": 68.372,
"s": 50.988,
"l": 50.392
},
"oklch": {
"l": 0.77297,
"c": 0.15206,
"h": 116.9
},
"luminance": 0.47624
}Semantic roles & 50–950 ramp
primary
#AFC140
secondary
#9A92CB
accent
#4DDA61
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C