#AFC042#AFC042
#AFC042 is a light, vivid yellow. Relative luminance 0.472; OKLCH L 77.1% C 0.149 H 116.6°. Best body text is #000000 at 10.44:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC042 |
|---|---|
| RGB | rgb(175, 192, 66) |
| HSL | hsl(68, 50%, 51%) |
| HSV | hsv(68, 66%, 75%) |
| CMYK | cmyk(8.9%, 0%, 65.6%, 24.7%) |
| CIE-LAB | lab(74.32, -22.56, 59.07) |
| CIE-LCH | lch(74.32, 63.23, 110.90°) |
| OKLab | oklab(77.09% -0.0669 0.1336) |
| OKLCH | oklch(77.09% 0.149 116.6) |
| XYZ | xyz(37.5130, 47.2071, 12.2889) |
| Luminance | 0.4721 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 3.00
Sick Green
#9DB92C
ΔE00 3.41
Gross Green
#A0BF16
ΔE00 3.72
Snot
#ACBB0D
ΔE00 3.80
Booger
#9BB53C
ΔE00 4.12
Bright Olive
#9CBB04
ΔE00 4.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC042 #5342C0
analogous
#C09242 #AFC042 #70C042
triadic
#AFC042 #42AFC0 #C042AF
tetradic
#AFC042 #42C092 #5342C0 #C04270
square
#AFC042 #42C092 #5342C0 #C04270
split-complementary
#AFC042 #4270C0 #9242C0
monochromatic
#5D6622 #869431 #AFC042 #C2CF70 #D6DF9E
Accessibility & contrast
On white
2.01
#AFC042 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.44
#AFC042 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC042
10.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC042 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC042 | 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)
#CDB631
Deuteranopia (green-blind)
#CBB84B
Tritanopia (blue-blind)
#B9B6A6
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #afc042; /* rgb */ color: rgb(175, 192, 66); /* oklch */ color: oklch(77.1% 0.149 116.6);
Tailwind
colors: {
custom: {
50: '#cad37d',
500: '#afc042',
950: '#000000',
},
}SCSS
$custom: #afc042; $custom-light: #cad37d; $custom-dark: #000000;
JSON
{
"hex": "#afc042",
"rgb": {
"r": 175,
"g": 192,
"b": 66
},
"hsl": {
"h": 68.095,
"s": 50,
"l": 50.588
},
"oklch": {
"l": 0.77088,
"c": 0.14946,
"h": 116.6
},
"luminance": 0.47207
}Semantic roles & 50–950 ramp
primary
#AFC042
secondary
#9A93CB
accent
#4EDA61
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C