#AFAB28#AFAB28
#AFAB28 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.144 H 107.7°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB28 |
|---|---|
| RGB | rgb(175, 171, 40) |
| HSL | hsl(58, 63%, 42%) |
| HSV | hsv(58, 77%, 69%) |
| CMYK | cmyk(0%, 2.3%, 77.1%, 31.4%) |
| CIE-LAB | lab(68.31, -13.32, 62.66) |
| CIE-LCH | lch(68.31, 64.06, 102.00°) |
| OKLab | oklab(72.22% -0.0436 0.1368) |
| OKLCH | oklch(72.22% 0.144 107.7) |
| XYZ | xyz(32.6264, 38.3941, 7.6993) |
| Luminance | 0.3839 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.60
Vomit
#A2A415
ΔE00 2.88
Mustard Green
#A8B504
ΔE00 4.68
Muddy Yellow
#BFAC05
ΔE00 4.73
Olive Yellow
#C2B709
ΔE00 4.91
Puke Green
#9AAE07
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB28 #282CAF
analogous
#AF6728 #AFAB28 #70AF28
triadic
#AFAB28 #28AFAB #AB28AF
tetradic
#AFAB28 #28AF67 #282CAF #AF2870
square
#AFAB28 #28AF67 #282CAF #AF2870
split-complementary
#AFAB28 #2870AF #6728AF
monochromatic
#4B4A11 #7D7A1D #AFAB28 #D4CF41 #DFDC73
Accessibility & contrast
On white
2.42
#AFAB28 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.68
#AFAB28 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB28
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB28 | 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)
#BAA404
Deuteranopia (green-blind)
#BCA933
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab28; /* rgb */ color: rgb(175, 171, 40); /* oklch */ color: oklch(72.2% 0.144 107.7);
Tailwind
colors: {
custom: {
50: '#cbc36d',
500: '#afab28',
950: '#000000',
},
}SCSS
$custom: #afab28; $custom-light: #cbc36d; $custom-dark: #000000;
JSON
{
"hex": "#afab28",
"rgb": {
"r": 175,
"g": 171,
"b": 40
},
"hsl": {
"h": 58.222,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.72225,
"c": 0.14354,
"h": 107.7
},
"luminance": 0.38393
}Semantic roles & 50–950 ramp
primary
#AFAB28
secondary
#6D6FC6
accent
#47E642
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B