#AFAB25#AFAB25
#AFAB25 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.145 H 107.7°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB25 |
|---|---|
| RGB | rgb(175, 171, 37) |
| HSL | hsl(58, 65%, 42%) |
| HSV | hsv(58, 79%, 69%) |
| CMYK | cmyk(0%, 2.3%, 78.9%, 31.4%) |
| CIE-LAB | lab(68.30, -13.43, 63.57) |
| CIE-LCH | lch(68.30, 64.97, 101.93°) |
| OKLab | oklab(72.21% -0.0442 0.1381) |
| OKLCH | oklch(72.21% 0.145 107.7) |
| XYZ | xyz(32.5774, 38.3745, 7.4409) |
| Luminance | 0.3837 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.48
Vomit
#A2A415
ΔE00 2.85
Mustard Green
#A8B504
ΔE00 4.61
Muddy Yellow
#BFAC05
ΔE00 4.61
Olive Yellow
#C2B709
ΔE00 4.79
Puke Green
#9AAE07
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB25 #2529AF
analogous
#AF6625 #AFAB25 #6EAF25
triadic
#AFAB25 #25AFAB #AB25AF
tetradic
#AFAB25 #25AF66 #2529AF #AF256E
square
#AFAB25 #25AF66 #2529AF #AF256E
split-complementary
#AFAB25 #256EAF #6625AF
monochromatic
#4A4810 #7C7A1A #AFAB25 #D6D13C #E0DD6E
Accessibility & contrast
On white
2.42
#AFAB25 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.67
#AFAB25 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB25
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB25 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB25 | 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)
#BCA931
Tritanopia (blue-blind)
#BC9F92
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #afab25; /* rgb */ color: rgb(175, 171, 37); /* oklch */ color: oklch(72.2% 0.145 107.7);
Tailwind
colors: {
custom: {
50: '#cbc36c',
500: '#afab25',
950: '#000000',
},
}SCSS
$custom: #afab25; $custom-light: #cbc36c; $custom-dark: #000000;
JSON
{
"hex": "#afab25",
"rgb": {
"r": 175,
"g": 171,
"b": 37
},
"hsl": {
"h": 58.261,
"s": 65.094,
"l": 41.569
},
"oklch": {
"l": 0.72209,
"c": 0.14503,
"h": 107.7
},
"luminance": 0.38373
}Semantic roles & 50–950 ramp
primary
#AFAB25
secondary
#696CC7
accent
#45E840
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A