#AFAB3A#AFAB3A
#AFAB3A is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.132 H 107.3°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB3A |
|---|---|
| RGB | rgb(175, 171, 58) |
| HSL | hsl(58, 50%, 46%) |
| HSV | hsv(58, 67%, 69%) |
| CMYK | cmyk(0%, 2.3%, 66.9%, 31.4%) |
| CIE-LAB | lab(68.42, -12.44, 56.22) |
| CIE-LCH | lch(68.42, 57.58, 102.48°) |
| OKLab | oklab(72.35% -0.0394 0.1264) |
| OKLCH | oklch(72.35% 0.132 107.3) |
| XYZ | xyz(33.0070, 38.5463, 9.7037) |
| Luminance | 0.3855 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 3.63
Puke
#A5A502
ΔE00 3.84
Mustard Green
#A8B504
ΔE00 5.55
Muddy Yellow
#BFAC05
ΔE00 5.78
Olive Yellow
#C2B709
ΔE00 6.03
Puke Green
#9AAE07
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB3A #3A3EAF
analogous
#AF703A #AFAB3A #78AF3A
triadic
#AFAB3A #3AAFAB #AB3AAF
tetradic
#AFAB3A #3AAF70 #3A3EAF #AF3A78
square
#AFAB3A #3AAF70 #3A3EAF #AF3A78
split-complementary
#AFAB3A #3A78AF #703AAF
monochromatic
#53511C #817E2B #AFAB3A #C9C65D #D9D68B
Accessibility & contrast
On white
2.41
#AFAB3A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.71
#AFAB3A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB3A
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB3A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB3A | 1.00 | 2.41 | 8.71 | 8.71 |
| #FFFFFF | 2.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A42A
Deuteranopia (green-blind)
#BBA941
Tritanopia (blue-blind)
#BBA094
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab3a; /* rgb */ color: rgb(175, 171, 58); /* oklch */ color: oklch(72.3% 0.132 107.3);
Tailwind
colors: {
custom: {
50: '#cac376',
500: '#afab3a',
950: '#000000',
},
}SCSS
$custom: #afab3a; $custom-light: #cac376; $custom-dark: #000000;
JSON
{
"hex": "#afab3a",
"rgb": {
"r": 175,
"g": 171,
"b": 58
},
"hsl": {
"h": 57.949,
"s": 50.215,
"l": 45.686
},
"oklch": {
"l": 0.72349,
"c": 0.13235,
"h": 107.3
},
"luminance": 0.38545
}Semantic roles & 50–950 ramp
primary
#AFAB3A
secondary
#8284C3
accent
#53DA4E
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B