#AFAB27#AFAB27
#AFAB27 is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.2% C 0.144 H 107.7°. Best body text is #000000 at 8.68:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB27 |
|---|---|
| RGB | rgb(175, 171, 39) |
| HSL | hsl(58, 64%, 42%) |
| HSV | hsv(58, 78%, 69%) |
| CMYK | cmyk(0%, 2.3%, 77.7%, 31.4%) |
| CIE-LAB | lab(68.31, -13.35, 62.97) |
| CIE-LCH | lch(68.31, 64.37, 101.97°) |
| OKLab | oklab(72.22% -0.0438 0.1372) |
| OKLCH | oklch(72.22% 0.144 107.7) |
| XYZ | xyz(32.6096, 38.3874, 7.6108) |
| Luminance | 0.3839 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.56
Vomit
#A2A415
ΔE00 2.87
Mustard Green
#A8B504
ΔE00 4.66
Muddy Yellow
#BFAC05
ΔE00 4.69
Olive Yellow
#C2B709
ΔE00 4.87
Puke Green
#9AAE07
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB27 #272BAF
analogous
#AF6727 #AFAB27 #6FAF27
triadic
#AFAB27 #27AFAB #AB27AF
tetradic
#AFAB27 #27AF67 #272BAF #AF276F
square
#AFAB27 #27AF67 #272BAF #AF276F
split-complementary
#AFAB27 #276FAF #6727AF
monochromatic
#4B4911 #7D7A1C #AFAB27 #D4D03F #DFDC71
Accessibility & contrast
On white
2.42
#AFAB27 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.68
#AFAB27 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB27
8.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB27 | 1.00 | 2.42 | 8.68 | 8.68 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BCA932
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #afab27; /* rgb */ color: rgb(175, 171, 39); /* oklch */ color: oklch(72.2% 0.144 107.7);
Tailwind
colors: {
custom: {
50: '#cbc36d',
500: '#afab27',
950: '#000000',
},
}SCSS
$custom: #afab27; $custom-light: #cbc36d; $custom-dark: #000000;
JSON
{
"hex": "#afab27",
"rgb": {
"r": 175,
"g": 171,
"b": 39
},
"hsl": {
"h": 58.235,
"s": 63.551,
"l": 41.961
},
"oklch": {
"l": 0.72219,
"c": 0.14405,
"h": 107.7
},
"luminance": 0.38386
}Semantic roles & 50–950 ramp
primary
#AFAB27
secondary
#6B6EC6
accent
#46E741
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141208
muted
#82817B