#AFB22F#AFB22F
#AFB22F is a light, vivid yellow. Relative luminance 0.412; OKLCH L 73.8% C 0.147 H 110.8°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB22F |
|---|---|
| RGB | rgb(175, 178, 47) |
| HSL | hsl(61, 58%, 44%) |
| HSV | hsv(61, 74%, 70%) |
| CMYK | cmyk(1.7%, 0%, 73.6%, 30.2%) |
| CIE-LAB | lab(70.29, -16.60, 62.18) |
| CIE-LCH | lch(70.29, 64.36, 104.95°) |
| OKLab | oklab(73.82% -0.0521 0.137) |
| OKLCH | oklch(73.82% 0.147 110.8) |
| XYZ | xyz(34.1139, 41.1609, 8.8366) |
| Luminance | 0.4116 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.96
Snot
#ACBB0D
ΔE00 3.76
Puke
#A5A502
ΔE00 4.12
Vomit
#A2A415
ΔE00 4.14
Puke Green
#9AAE07
ΔE00 4.42
Puke Yellow
#C2BE0E
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB22F #322FB2
analogous
#B2742F #AFB22F #6EB22F
triadic
#AFB22F #2FAFB2 #B22FAF
tetradic
#AFB22F #2FB274 #322FB2 #B22F6E
square
#AFB22F #2FB274 #322FB2 #B22F6E
split-complementary
#AFB22F #2F6EB2 #742FB2
monochromatic
#505115 #7F8222 #AFB22F #CDD04E #DBDD7E
Accessibility & contrast
On white
2.27
#AFB22F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.23
#AFB22F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB22F
9.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB22F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB22F | 1.00 | 2.27 | 9.23 | 9.23 |
| #FFFFFF | 2.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C0AA14
Deuteranopia (green-blind)
#C1AE39
Tritanopia (blue-blind)
#BBA799
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afb22f; /* rgb */ color: rgb(175, 178, 47); /* oklch */ color: oklch(73.8% 0.147 110.8);
Tailwind
colors: {
custom: {
50: '#cac871',
500: '#afb22f',
950: '#000000',
},
}SCSS
$custom: #afb22f; $custom-light: #cac871; $custom-dark: #000000;
JSON
{
"hex": "#afb22f",
"rgb": {
"r": 175,
"g": 178,
"b": 47
},
"hsl": {
"h": 61.374,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.73817,
"c": 0.14663,
"h": 110.8
},
"luminance": 0.4116
}Semantic roles & 50–950 ramp
primary
#AFB22F
secondary
#7977C6
accent
#46E14A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B