#AFC142#AFC142
#AFC142 is a light, vivid yellow. Relative luminance 0.476; OKLCH L 77.3% C 0.151 H 117.0°. Best body text is #000000 at 10.53:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC142 |
|---|---|
| RGB | rgb(175, 193, 66) |
| HSL | hsl(69, 51%, 51%) |
| HSV | hsv(69, 66%, 76%) |
| CMYK | cmyk(9.3%, 0%, 65.8%, 24.3%) |
| CIE-LAB | lab(74.60, -23.05, 59.37) |
| CIE-LCH | lch(74.60, 63.68, 111.22°) |
| OKLab | oklab(77.31% -0.0683 0.1342) |
| OKLCH | oklch(77.31% 0.151 117) |
| XYZ | xyz(37.7333, 47.6477, 12.3623) |
| Luminance | 0.4765 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.92
Sick Green
#9DB92C
ΔE00 3.43
Gross Green
#A0BF16
ΔE00 3.62
Snot
#ACBB0D
ΔE00 3.89
Booger
#9BB53C
ΔE00 4.21
Bright Olive
#9CBB04
ΔE00 4.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC142 #5442C1
analogous
#C19342 #AFC142 #6FC142
triadic
#AFC142 #42AFC1 #C142AF
tetradic
#AFC142 #42C193 #5442C1 #C1426F
square
#AFC142 #42C193 #5442C1 #C1426F
split-complementary
#AFC142 #426FC1 #9342C1
monochromatic
#5D6722 #879531 #AFC142 #C3D070 #D6DF9E
Accessibility & contrast
On white
1.99
#AFC142 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.53
#AFC142 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC142
10.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC142 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC142 | 1.00 | 1.99 | 10.53 | 10.53 |
| #FFFFFF | 1.99 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CEB730
Deuteranopia (green-blind)
#CCB84B
Tritanopia (blue-blind)
#B9B7A7
Achromatopsia (no color)
#B8B8B8
Design tokens & code
CSS
--color: #afc142; /* rgb */ color: rgb(175, 193, 66); /* oklch */ color: oklch(77.3% 0.151 117.0);
Tailwind
colors: {
custom: {
50: '#cad37d',
500: '#afc142',
950: '#000000',
},
}SCSS
$custom: #afc142; $custom-light: #cad37d; $custom-dark: #000000;
JSON
{
"hex": "#afc142",
"rgb": {
"r": 175,
"g": 193,
"b": 66
},
"hsl": {
"h": 68.504,
"s": 50.598,
"l": 50.784
},
"oklch": {
"l": 0.77313,
"c": 0.15063,
"h": 117
},
"luminance": 0.47647
}Semantic roles & 50–950 ramp
primary
#AFC142
secondary
#9B93CC
accent
#4EDA62
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C