#AFAB31#AFAB31
#AFAB31 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.138 H 107.5°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB31 |
|---|---|
| RGB | rgb(175, 171, 49) |
| HSL | hsl(58, 56%, 44%) |
| HSV | hsv(58, 72%, 69%) |
| CMYK | cmyk(0%, 2.3%, 72%, 31.4%) |
| CIE-LAB | lab(68.36, -12.92, 59.63) |
| CIE-LCH | lch(68.36, 61.02, 102.22°) |
| OKLab | oklab(72.28% -0.0417 0.132) |
| OKLCH | oklch(72.28% 0.138 107.5) |
| XYZ | xyz(32.7977, 38.4626, 8.6015) |
| Luminance | 0.3846 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.11
Vomit
#A2A415
ΔE00 3.12
Mustard Green
#A8B504
ΔE00 5.02
Muddy Yellow
#BFAC05
ΔE00 5.18
Olive Yellow
#C2B709
ΔE00 5.39
Puke Green
#9AAE07
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB31 #3135AF
analogous
#AF6C31 #AFAB31 #74AF31
triadic
#AFAB31 #31AFAB #AB31AF
tetradic
#AFAB31 #31AF6C #3135AF #AF3174
square
#AFAB31 #31AF6C #3135AF #AF3174
split-complementary
#AFAB31 #3174AF #6C31AF
monochromatic
#4F4E16 #7F7C24 #AFAB31 #CECA4F #DBD87F
Accessibility & contrast
On white
2.42
#AFAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.69
#AFAB31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB31
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB31 | 1.00 | 2.42 | 8.69 | 8.69 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A41B
Deuteranopia (green-blind)
#BCA93A
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab31; /* rgb */ color: rgb(175, 171, 49); /* oklch */ color: oklch(72.3% 0.138 107.5);
Tailwind
colors: {
custom: {
50: '#cac372',
500: '#afab31',
950: '#000000',
},
}SCSS
$custom: #afab31; $custom-light: #cac372; $custom-dark: #000000;
JSON
{
"hex": "#afab31",
"rgb": {
"r": 175,
"g": 171,
"b": 49
},
"hsl": {
"h": 58.095,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.72281,
"c": 0.13842,
"h": 107.5
},
"luminance": 0.38462
}Semantic roles & 50–950 ramp
primary
#AFAB31
secondary
#787AC4
accent
#4DE048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B