#AFC242#AFC242
#AFC242 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 77.5% C 0.152 H 117.3°. Best body text is #000000 at 10.62:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC242 |
|---|---|
| RGB | rgb(175, 194, 66) |
| HSL | hsl(69, 51%, 51%) |
| HSV | hsv(69, 66%, 76%) |
| CMYK | cmyk(9.8%, 0%, 66%, 23.9%) |
| CIE-LAB | lab(74.88, -23.54, 59.66) |
| CIE-LCH | lch(74.88, 64.13, 111.53°) |
| OKLab | oklab(77.54% -0.0697 0.1349) |
| OKLCH | oklch(77.54% 0.152 117.3) |
| XYZ | xyz(37.9551, 48.0913, 12.4363) |
| Luminance | 0.4809 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.86
Sick Green
#9DB92C
ΔE00 3.48
Gross Green
#A0BF16
ΔE00 3.55
Snot
#ACBB0D
ΔE00 4.00
Bright Olive
#9CBB04
ΔE00 4.29
Snot Green
#9DC100
ΔE00 4.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC242 #5542C2
analogous
#C29542 #AFC242 #6FC242
triadic
#AFC242 #42AFC2 #C242AF
tetradic
#AFC242 #42C295 #5542C2 #C2426F
square
#AFC242 #42C295 #5542C2 #C2426F
split-complementary
#AFC242 #426FC2 #9542C2
monochromatic
#5E6822 #879631 #AFC242 #C3D170 #D6E09F
Accessibility & contrast
On white
1.98
#AFC242 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.62
#AFC242 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC242
10.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC242 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC242 | 1.00 | 1.98 | 10.62 | 10.62 |
| #FFFFFF | 1.98 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFB830
Deuteranopia (green-blind)
#CDB94B
Tritanopia (blue-blind)
#B9B8A8
Achromatopsia (no color)
#B8B8B8
Design tokens & code
CSS
--color: #afc242; /* rgb */ color: rgb(175, 194, 66); /* oklch */ color: oklch(77.5% 0.152 117.3);
Tailwind
colors: {
custom: {
50: '#cad47d',
500: '#afc242',
950: '#000000',
},
}SCSS
$custom: #afc242; $custom-light: #cad47d; $custom-dark: #000000;
JSON
{
"hex": "#afc242",
"rgb": {
"r": 175,
"g": 194,
"b": 66
},
"hsl": {
"h": 68.906,
"s": 51.2,
"l": 50.98
},
"oklch": {
"l": 0.77538,
"c": 0.15179,
"h": 117.3
},
"luminance": 0.48091
}Semantic roles & 50–950 ramp
primary
#AFC242
secondary
#9C94CC
accent
#4DDB62
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C