#AFC12F#AFC12F
#AFC12F is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.2% C 0.163 H 116.6°. Best body text is #000000 at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC12F |
|---|---|
| RGB | rgb(175, 193, 47) |
| HSL | hsl(67, 61%, 47%) |
| HSV | hsv(67, 76%, 76%) |
| CMYK | cmyk(9.3%, 0%, 75.6%, 24.3%) |
| CIE-LAB | lab(74.48, -24.07, 66.11) |
| CIE-LCH | lch(74.48, 70.36, 110.00°) |
| OKLab | oklab(77.18% -0.0729 0.1454) |
| OKLCH | oklch(77.18% 0.163 116.6) |
| XYZ | xyz(37.2632, 47.4596, 9.8864) |
| Luminance | 0.4746 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.04
Snot
#ACBB0D
ΔE00 2.35
Bile
#B5C306
ΔE00 2.70
Gross Green
#A0BF16
ΔE00 2.81
Baby Puke Green
#B6C406
ΔE00 2.83
Bright Olive
#9CBB04
ΔE00 3.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC12F #412FC1
analogous
#C18A2F #AFC12F #66C12F
triadic
#AFC12F #2FAFC1 #C12FAF
tetradic
#AFC12F #2FC18A #412FC1 #C12F66
square
#AFC12F #2FC18A #412FC1 #C12F66
split-complementary
#AFC12F #2F66C1 #8A2FC1
monochromatic
#565F17 #829023 #AFC12F #C6D657 #D7E288
Accessibility & contrast
On white
2.00
#AFC12F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.49
#AFC12F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC12F
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC12F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC12F | 1.00 | 2.00 | 10.49 | 10.49 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFB709
Deuteranopia (green-blind)
#CDB83C
Tritanopia (blue-blind)
#BAB6A6
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #afc12f; /* rgb */ color: rgb(175, 193, 47); /* oklch */ color: oklch(77.2% 0.163 116.6);
Tailwind
colors: {
custom: {
50: '#cbd373',
500: '#afc12f',
950: '#000000',
},
}SCSS
$custom: #afc12f; $custom-light: #cbd373; $custom-dark: #000000;
JSON
{
"hex": "#afc12f",
"rgb": {
"r": 175,
"g": 193,
"b": 47
},
"hsl": {
"h": 67.397,
"s": 60.833,
"l": 47.059
},
"oklch": {
"l": 0.77179,
"c": 0.16259,
"h": 116.6
},
"luminance": 0.47459
}Semantic roles & 50–950 ramp
primary
#AFC12F
secondary
#8980CC
accent
#44E458
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B