#AFAB22#AFAB22
#AFAB22 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.146 H 107.8°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB22 |
|---|---|
| RGB | rgb(175, 171, 34) |
| HSL | hsl(58, 67%, 41%) |
| HSV | hsv(58, 81%, 69%) |
| CMYK | cmyk(0%, 2.3%, 80.6%, 31.4%) |
| CIE-LAB | lab(68.28, -13.53, 64.43) |
| CIE-LCH | lch(68.28, 65.83, 101.86°) |
| OKLab | oklab(72.19% -0.0447 0.1394) |
| OKLCH | oklch(72.19% 0.146 107.8) |
| XYZ | xyz(32.5322, 38.3564, 7.2029) |
| Luminance | 0.3836 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.39
Vomit
#A2A415
ΔE00 2.85
Muddy Yellow
#BFAC05
ΔE00 4.51
Mustard Green
#A8B504
ΔE00 4.55
Olive Yellow
#C2B709
ΔE00 4.68
Puke Green
#9AAE07
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB22 #2226AF
analogous
#AF6422 #AFAB22 #6CAF22
triadic
#AFAB22 #22AFAB #AB22AF
tetradic
#AFAB22 #22AF64 #2226AF #AF226C
square
#AFAB22 #22AF64 #2226AF #AF226C
split-complementary
#AFAB22 #226CAF #6422AF
monochromatic
#49470E #7C7918 #AFAB22 #D8D336 #E2DF69
Accessibility & contrast
On white
2.42
#AFAB22 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.67
#AFAB22 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB22
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB22 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB22 | 1.00 | 2.42 | 8.67 | 8.67 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BCA92F
Tritanopia (blue-blind)
#BC9F92
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #afab22; /* rgb */ color: rgb(175, 171, 34); /* oklch */ color: oklch(72.2% 0.146 107.8);
Tailwind
colors: {
custom: {
50: '#cbc36b',
500: '#afab22',
950: '#000000',
},
}SCSS
$custom: #afab22; $custom-light: #cbc36b; $custom-dark: #000000;
JSON
{
"hex": "#afab22",
"rgb": {
"r": 175,
"g": 171,
"b": 34
},
"hsl": {
"h": 58.298,
"s": 67.464,
"l": 40.98
},
"oklch": {
"l": 0.72194,
"c": 0.14641,
"h": 107.8
},
"luminance": 0.38355
}Semantic roles & 50–950 ramp
primary
#AFAB22
secondary
#6568C8
accent
#42EA3D
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A