#AFAB29#AFAB29
#AFAB29 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.143 H 107.7°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB29 |
|---|---|
| RGB | rgb(175, 171, 41) |
| HSL | hsl(58, 62%, 42%) |
| HSV | hsv(58, 77%, 69%) |
| CMYK | cmyk(0%, 2.3%, 76.6%, 31.4%) |
| CIE-LAB | lab(68.32, -13.28, 62.34) |
| CIE-LCH | lch(68.32, 63.74, 102.02°) |
| OKLab | oklab(72.23% -0.0434 0.1363) |
| OKLCH | oklch(72.23% 0.143 107.7) |
| XYZ | xyz(32.6437, 38.4010, 7.7900) |
| Luminance | 0.3840 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.65
Vomit
#A2A415
ΔE00 2.90
Mustard Green
#A8B504
ΔE00 4.71
Muddy Yellow
#BFAC05
ΔE00 4.77
Olive Yellow
#C2B709
ΔE00 4.96
Puke Green
#9AAE07
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB29 #292DAF
analogous
#AF6829 #AFAB29 #70AF29
triadic
#AFAB29 #29AFAB #AB29AF
tetradic
#AFAB29 #29AF68 #292DAF #AF2970
square
#AFAB29 #29AF68 #292DAF #AF2970
split-complementary
#AFAB29 #2970AF #6829AF
monochromatic
#4C4A12 #7D7B1D #AFAB29 #D3CF42 #DEDB74
Accessibility & contrast
On white
2.42
#AFAB29 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.68
#AFAB29 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB29
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB29 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB29 | 1.00 | 2.42 | 8.68 | 8.68 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA407
Deuteranopia (green-blind)
#BCA934
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab29; /* rgb */ color: rgb(175, 171, 41); /* oklch */ color: oklch(72.2% 0.143 107.7);
Tailwind
colors: {
custom: {
50: '#cbc36e',
500: '#afab29',
950: '#000000',
},
}SCSS
$custom: #afab29; $custom-light: #cbc36e; $custom-dark: #000000;
JSON
{
"hex": "#afab29",
"rgb": {
"r": 175,
"g": 171,
"b": 41
},
"hsl": {
"h": 58.209,
"s": 62.037,
"l": 42.353
},
"oklch": {
"l": 0.7223,
"c": 0.14301,
"h": 107.7
},
"luminance": 0.384
}Semantic roles & 50–950 ramp
primary
#AFAB29
secondary
#6E71C6
accent
#48E543
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B