#AFAB33#AFAB33
#AFAB33 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.137 H 107.5°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB33 |
|---|---|
| RGB | rgb(175, 171, 51) |
| HSL | hsl(58, 55%, 44%) |
| HSV | hsv(58, 71%, 69%) |
| CMYK | cmyk(0%, 2.3%, 70.9%, 31.4%) |
| CIE-LAB | lab(68.37, -12.82, 58.91) |
| CIE-LCH | lch(68.37, 60.28, 102.28°) |
| OKLab | oklab(72.3% -0.0412 0.1308) |
| OKLCH | oklch(72.3% 0.137 107.5) |
| XYZ | xyz(32.8409, 38.4799, 8.8288) |
| Luminance | 0.3848 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 3.21
Puke
#A5A502
ΔE00 3.25
Mustard Green
#A8B504
ΔE00 5.12
Muddy Yellow
#BFAC05
ΔE00 5.30
Olive Yellow
#C2B709
ΔE00 5.52
Puke Green
#9AAE07
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB33 #3337AF
analogous
#AF6D33 #AFAB33 #75AF33
triadic
#AFAB33 #33AFAB #AB33AF
tetradic
#AFAB33 #33AF6D #3337AF #AF3375
square
#AFAB33 #33AF6D #3337AF #AF3375
split-complementary
#AFAB33 #3375AF #6D33AF
monochromatic
#504E17 #807D25 #AFAB33 #CDC952 #DBD882
Accessibility & contrast
On white
2.41
#AFAB33 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.70
#AFAB33 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB33
8.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB33 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB33 | 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)
#B9A41F
Deuteranopia (green-blind)
#BCA93C
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab33; /* rgb */ color: rgb(175, 171, 51); /* oklch */ color: oklch(72.3% 0.137 107.5);
Tailwind
colors: {
custom: {
50: '#cac373',
500: '#afab33',
950: '#000000',
},
}SCSS
$custom: #afab33; $custom-light: #cac373; $custom-dark: #000000;
JSON
{
"hex": "#afab33",
"rgb": {
"r": 175,
"g": 171,
"b": 51
},
"hsl": {
"h": 58.065,
"s": 54.867,
"l": 44.314
},
"oklch": {
"l": 0.72295,
"c": 0.13716,
"h": 107.5
},
"luminance": 0.38479
}Semantic roles & 50–950 ramp
primary
#AFAB33
secondary
#7A7CC4
accent
#4EDE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B