#AFAB46#AFAB46
#AFAB46 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.123 H 107.0°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB46 |
|---|---|
| RGB | rgb(175, 171, 70) |
| HSL | hsl(58, 43%, 48%) |
| HSV | hsv(58, 60%, 69%) |
| CMYK | cmyk(0%, 2.3%, 60%, 31.4%) |
| CIE-LAB | lab(68.52, -11.66, 51.18) |
| CIE-LCH | lch(68.52, 52.49, 102.83°) |
| OKLab | oklab(72.46% -0.0358 0.1175) |
| OKLCH | oklch(72.46% 0.123 107) |
| XYZ | xyz(33.3487, 38.6830, 11.5030) |
| Luminance | 0.3868 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.71
Puke
#A5A502
ΔE00 5.12
Khaki (survey)
#AAA662
ΔE00 5.40
Darkkhaki
#BDB76B
ΔE00 5.43
Mustard Green
#A8B504
ΔE00 6.57
Pea Soup Green
#94A617
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB46 #464AAF
analogous
#AF7646 #AFAB46 #7EAF46
triadic
#AFAB46 #46AFAB #AB46AF
tetradic
#AFAB46 #46AF76 #464AAF #AF467E
square
#AFAB46 #46AF76 #464AAF #AF467E
split-complementary
#AFAB46 #467EAF #7646AF
monochromatic
#585623 #838035 #AFAB46 #C5C16D #D6D499
Accessibility & contrast
On white
2.40
#AFAB46 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.74
#AFAB46 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB46
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB46 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB46 | 1.00 | 2.40 | 8.74 | 8.74 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B8A53B
Deuteranopia (green-blind)
#BBA94C
Tritanopia (blue-blind)
#BBA195
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab46; /* rgb */ color: rgb(175, 171, 70); /* oklch */ color: oklch(72.5% 0.123 107.0);
Tailwind
colors: {
custom: {
50: '#c9c37e',
500: '#afab46',
950: '#000000',
},
}SCSS
$custom: #afab46; $custom-light: #c9c37e; $custom-dark: #000000;
JSON
{
"hex": "#afab46",
"rgb": {
"r": 175,
"g": 171,
"b": 70
},
"hsl": {
"h": 57.714,
"s": 42.857,
"l": 48.039
},
"oklch": {
"l": 0.7246,
"c": 0.12285,
"h": 107
},
"luminance": 0.38682
}Semantic roles & 50–950 ramp
primary
#AFAB46
secondary
#8E90C2
accent
#5AD355
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C