#AFC12B#AFC12B
#AFC12B is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.2% C 0.165 H 116.6°. Best body text is #000000 at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC12B |
|---|---|
| RGB | rgb(175, 193, 43) |
| HSL | hsl(67, 64%, 46%) |
| HSV | hsv(67, 78%, 76%) |
| CMYK | cmyk(9.3%, 0%, 77.7%, 24.3%) |
| CIE-LAB | lab(74.46, -24.23, 67.33) |
| CIE-LCH | lch(74.46, 71.55, 109.80°) |
| OKLab | oklab(77.16% -0.0736 0.1472) |
| OKLCH | oklch(77.16% 0.165 116.6) |
| XYZ | xyz(37.1862, 47.4288, 9.4808) |
| Luminance | 0.4743 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.03
Snot
#ACBB0D
ΔE00 2.13
Bile
#B5C306
ΔE00 2.42
Baby Puke Green
#B6C406
ΔE00 2.56
Gross Green
#A0BF16
ΔE00 2.77
Bright Olive
#9CBB04
ΔE00 3.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC12B #3D2BC1
analogous
#C1882B #AFC12B #64C12B
triadic
#AFC12B #2BAFC1 #C12BAF
tetradic
#AFC12B #2BC188 #3D2BC1 #C12B64
square
#AFC12B #2BC188 #3D2BC1 #C12B64
split-complementary
#AFC12B #2B64C1 #882BC1
monochromatic
#545D15 #828F20 #AFC12B #C8D851 #D8E383
Accessibility & contrast
On white
2.00
#AFC12B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.49
#AFC12B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC12B
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC12B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC12B | 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)
#CFB700
Deuteranopia (green-blind)
#CDB839
Tritanopia (blue-blind)
#BAB6A5
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #afc12b; /* rgb */ color: rgb(175, 193, 43); /* oklch */ color: oklch(77.2% 0.165 116.6);
Tailwind
colors: {
custom: {
50: '#cbd371',
500: '#afc12b',
950: '#000000',
},
}SCSS
$custom: #afc12b; $custom-light: #cbd371; $custom-dark: #000000;
JSON
{
"hex": "#afc12b",
"rgb": {
"r": 175,
"g": 193,
"b": 43
},
"hsl": {
"h": 67.2,
"s": 63.559,
"l": 46.275
},
"oklch": {
"l": 0.77157,
"c": 0.16463,
"h": 116.6
},
"luminance": 0.47428
}Semantic roles & 50–950 ramp
primary
#AFC12B
secondary
#857BCC
accent
#41E755
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B