#AFAB37#AFAB37
#AFAB37 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.134 H 107.4°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB37 |
|---|---|
| RGB | rgb(175, 171, 55) |
| HSL | hsl(58, 52%, 45%) |
| HSV | hsv(58, 69%, 69%) |
| CMYK | cmyk(0%, 2.3%, 68.6%, 31.4%) |
| CIE-LAB | lab(68.40, -12.61, 57.40) |
| CIE-LCH | lch(68.40, 58.76, 102.39°) |
| OKLab | oklab(72.32% -0.0402 0.1283) |
| OKLCH | oklch(72.32% 0.134 107.4) |
| XYZ | xyz(32.9329, 38.5167, 9.3134) |
| Luminance | 0.3852 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 3.43
Puke
#A5A502
ΔE00 3.57
Mustard Green
#A8B504
ΔE00 5.35
Muddy Yellow
#BFAC05
ΔE00 5.56
Olive Yellow
#C2B709
ΔE00 5.80
Puke Green
#9AAE07
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB37 #373BAF
analogous
#AF6F37 #AFAB37 #77AF37
triadic
#AFAB37 #37AFAB #AB37AF
tetradic
#AFAB37 #37AF6F #373BAF #AF3777
square
#AFAB37 #37AF6F #373BAF #AF3777
split-complementary
#AFAB37 #3777AF #6F37AF
monochromatic
#52501A #807D28 #AFAB37 #CBC759 #D9D787
Accessibility & contrast
On white
2.41
#AFAB37 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.70
#AFAB37 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB37
8.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB37 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB37 | 1.00 | 2.41 | 8.70 | 8.70 |
| #FFFFFF | 2.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A425
Deuteranopia (green-blind)
#BBA93F
Tritanopia (blue-blind)
#BCA094
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab37; /* rgb */ color: rgb(175, 171, 55); /* oklch */ color: oklch(72.3% 0.134 107.4);
Tailwind
colors: {
custom: {
50: '#cac375',
500: '#afab37',
950: '#000000',
},
}SCSS
$custom: #afab37; $custom-light: #cac375; $custom-dark: #000000;
JSON
{
"hex": "#afab37",
"rgb": {
"r": 175,
"g": 171,
"b": 55
},
"hsl": {
"h": 58,
"s": 52.174,
"l": 45.098
},
"oklch": {
"l": 0.72325,
"c": 0.13448,
"h": 107.4
},
"luminance": 0.38516
}Semantic roles & 50–950 ramp
primary
#AFAB37
secondary
#7F81C3
accent
#51DC4C
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B