#AFAB2F#AFAB2F
#AFAB2F is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.3% C 0.140 H 107.6°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB2F |
|---|---|
| RGB | rgb(175, 171, 47) |
| HSL | hsl(58, 58%, 44%) |
| HSV | hsv(58, 73%, 69%) |
| CMYK | cmyk(0%, 2.3%, 73.1%, 31.4%) |
| CIE-LAB | lab(68.35, -13.01, 60.34) |
| CIE-LCH | lch(68.35, 61.73, 102.17°) |
| OKLab | oklab(72.27% -0.0421 0.1331) |
| OKLCH | oklch(72.27% 0.14 107.6) |
| XYZ | xyz(32.7565, 38.4461, 8.3841) |
| Luminance | 0.3845 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.97
Vomit
#A2A415
ΔE00 3.05
Mustard Green
#A8B504
ΔE00 4.93
Muddy Yellow
#BFAC05
ΔE00 5.06
Olive Yellow
#C2B709
ΔE00 5.27
Puke Green
#9AAE07
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB2F #2F33AF
analogous
#AF6B2F #AFAB2F #73AF2F
triadic
#AFAB2F #2FAFAB #AB2FAF
tetradic
#AFAB2F #2FAF6B #2F33AF #AF2F73
square
#AFAB2F #2FAF6B #2F33AF #AF2F73
split-complementary
#AFAB2F #2F73AF #6B2FAF
monochromatic
#4F4D15 #7F7C22 #AFAB2F #CFCB4C #DCD97C
Accessibility & contrast
On white
2.42
#AFAB2F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.69
#AFAB2F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB2F
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB2F | 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)
#BAA417
Deuteranopia (green-blind)
#BCA938
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab2f; /* rgb */ color: rgb(175, 171, 47); /* oklch */ color: oklch(72.3% 0.140 107.6);
Tailwind
colors: {
custom: {
50: '#cac371',
500: '#afab2f',
950: '#000000',
},
}SCSS
$custom: #afab2f; $custom-light: #cac371; $custom-dark: #000000;
JSON
{
"hex": "#afab2f",
"rgb": {
"r": 175,
"g": 171,
"b": 47
},
"hsl": {
"h": 58.125,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.72267,
"c": 0.13964,
"h": 107.6
},
"luminance": 0.38445
}Semantic roles & 50–950 ramp
primary
#AFAB2F
secondary
#7578C4
accent
#4CE147
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B