#AFAB23#AFAB23
#AFAB23 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 | #AFAB23 |
|---|---|
| RGB | rgb(175, 171, 35) |
| HSL | hsl(58, 67%, 41%) |
| HSV | hsv(58, 80%, 69%) |
| CMYK | cmyk(0%, 2.3%, 80%, 31.4%) |
| CIE-LAB | lab(68.29, -13.50, 64.15) |
| CIE-LCH | lch(68.29, 65.55, 101.88°) |
| OKLab | oklab(72.2% -0.0445 0.139) |
| OKLCH | oklch(72.2% 0.146 107.8) |
| XYZ | xyz(32.5468, 38.3623, 7.2800) |
| Luminance | 0.3836 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.42
Vomit
#A2A415
ΔE00 2.85
Muddy Yellow
#BFAC05
ΔE00 4.55
Mustard Green
#A8B504
ΔE00 4.57
Olive Yellow
#C2B709
ΔE00 4.71
Puke Green
#9AAE07
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB23 #2327AF
analogous
#AF6523 #AFAB23 #6DAF23
triadic
#AFAB23 #23AFAB #AB23AF
tetradic
#AFAB23 #23AF65 #2327AF #AF236D
square
#AFAB23 #23AF65 #2327AF #AF236D
split-complementary
#AFAB23 #236DAF #6523AF
monochromatic
#49470F #7C7919 #AFAB23 #D7D338 #E1DE6B
Accessibility & contrast
On white
2.42
#AFAB23 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.67
#AFAB23 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB23
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB23 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB23 | 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: #afab23; /* rgb */ color: rgb(175, 171, 35); /* oklch */ color: oklch(72.2% 0.146 107.8);
Tailwind
colors: {
custom: {
50: '#cbc36b',
500: '#afab23',
950: '#000000',
},
}SCSS
$custom: #afab23; $custom-light: #cbc36b; $custom-dark: #000000;
JSON
{
"hex": "#afab23",
"rgb": {
"r": 175,
"g": 171,
"b": 35
},
"hsl": {
"h": 58.286,
"s": 66.667,
"l": 41.176
},
"oklch": {
"l": 0.72199,
"c": 0.14597,
"h": 107.8
},
"luminance": 0.38361
}Semantic roles & 50–950 ramp
primary
#AFAB23
secondary
#6669C7
accent
#43EA3E
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A