#AFAB3F#AFAB3F
#AFAB3F is a light, vivid yellow. Relative luminance 0.386; OKLCH L 72.4% C 0.129 H 107.2°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB3F |
|---|---|
| RGB | rgb(175, 171, 63) |
| HSL | hsl(58, 47%, 47%) |
| HSV | hsv(58, 64%, 69%) |
| CMYK | cmyk(0%, 2.3%, 64%, 31.4%) |
| CIE-LAB | lab(68.46, -12.13, 54.18) |
| CIE-LCH | lch(68.46, 55.52, 102.62°) |
| OKLab | oklab(72.39% -0.038 0.1229) |
| OKLCH | oklch(72.39% 0.129 107.2) |
| XYZ | xyz(33.1404, 38.5997, 10.4064) |
| Luminance | 0.3860 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.03
Puke
#A5A502
ΔE00 4.33
Mustard Green
#A8B504
ΔE00 5.93
Darkkhaki
#BDB76B
ΔE00 6.13
Muddy Yellow
#BFAC05
ΔE00 6.19
Khaki (survey)
#AAA662
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB3F #3F43AF
analogous
#AF733F #AFAB3F #7BAF3F
triadic
#AFAB3F #3FAFAB #AB3FAF
tetradic
#AFAB3F #3FAF73 #3F43AF #AF3F7B
square
#AFAB3F #3FAF73 #3F43AF #AF3F7B
split-complementary
#AFAB3F #3F7BAF #733FAF
monochromatic
#55531F #827F2F #AFAB3F #C7C464 #D7D591
Accessibility & contrast
On white
2.41
#AFAB3F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.72
#AFAB3F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB3F
8.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB3F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB3F | 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)
#B9A531
Deuteranopia (green-blind)
#BBA946
Tritanopia (blue-blind)
#BBA095
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab3f; /* rgb */ color: rgb(175, 171, 63); /* oklch */ color: oklch(72.4% 0.129 107.2);
Tailwind
colors: {
custom: {
50: '#cac379',
500: '#afab3f',
950: '#000000',
},
}SCSS
$custom: #afab3f; $custom-light: #cac379; $custom-dark: #000000;
JSON
{
"hex": "#afab3f",
"rgb": {
"r": 175,
"g": 171,
"b": 63
},
"hsl": {
"h": 57.857,
"s": 47.059,
"l": 46.667
},
"oklch": {
"l": 0.72393,
"c": 0.12859,
"h": 107.2
},
"luminance": 0.38599
}Semantic roles & 50–950 ramp
primary
#AFAB3F
secondary
#8789C3
accent
#56D751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B