#AFAB41#AFAB41
#AFAB41 is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.4% C 0.127 H 107.1°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB41 |
|---|---|
| RGB | rgb(175, 171, 65) |
| HSL | hsl(58, 46%, 47%) |
| HSV | hsv(58, 63%, 69%) |
| CMYK | cmyk(0%, 2.3%, 62.9%, 31.4%) |
| CIE-LAB | lab(68.48, -12.00, 53.34) |
| CIE-LCH | lch(68.48, 54.67, 102.68°) |
| OKLab | oklab(72.41% -0.0374 0.1214) |
| OKLCH | oklch(72.41% 0.127 107.1) |
| XYZ | xyz(33.1974, 38.6225, 10.7062) |
| Luminance | 0.3862 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.21
Puke
#A5A502
ΔE00 4.55
Darkkhaki
#BDB76B
ΔE00 5.93
Khaki (survey)
#AAA662
ΔE00 6.02
Mustard Green
#A8B504
ΔE00 6.10
Muddy Yellow
#BFAC05
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB41 #4145AF
analogous
#AF7441 #AFAB41 #7CAF41
triadic
#AFAB41 #41AFAB #AB41AF
tetradic
#AFAB41 #41AF74 #4145AF #AF417C
square
#AFAB41 #41AF74 #4145AF #AF417C
split-complementary
#AFAB41 #417CAF #7441AF
monochromatic
#565420 #827F30 #AFAB41 #C6C367 #D7D593
Accessibility & contrast
On white
2.41
#AFAB41 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.72
#AFAB41 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB41
8.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB41 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB41 | 1.00 | 2.41 | 8.72 | 8.72 |
| #FFFFFF | 2.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A534
Deuteranopia (green-blind)
#BBA947
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab41; /* rgb */ color: rgb(175, 171, 65); /* oklch */ color: oklch(72.4% 0.127 107.1);
Tailwind
colors: {
custom: {
50: '#cac37b',
500: '#afab41',
950: '#000000',
},
}SCSS
$custom: #afab41; $custom-light: #cac37b; $custom-dark: #000000;
JSON
{
"hex": "#afab41",
"rgb": {
"r": 175,
"g": 171,
"b": 65
},
"hsl": {
"h": 57.818,
"s": 45.833,
"l": 47.059
},
"oklch": {
"l": 0.72411,
"c": 0.127,
"h": 107.1
},
"luminance": 0.38621
}Semantic roles & 50–950 ramp
primary
#AFAB41
secondary
#898BC2
accent
#57D552
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C