#AFAF41#AFAF41
#AFAF41 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.3% C 0.131 H 109.2°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF41 |
|---|---|
| RGB | rgb(175, 175, 65) |
| HSL | hsl(60, 46%, 47%) |
| HSV | hsv(60, 63%, 69%) |
| CMYK | cmyk(0%, 0%, 62.9%, 31.4%) |
| CIE-LAB | lab(69.58, -14.07, 54.51) |
| CIE-LCH | lch(69.58, 56.30, 104.47°) |
| OKLab | oklab(73.29% -0.0432 0.1239) |
| OKLCH | oklch(73.29% 0.131 109.2) |
| XYZ | xyz(33.9644, 40.1565, 10.9618) |
| Luminance | 0.4016 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.45
Puke
#A5A502
ΔE00 4.78
Mustard Green
#A8B504
ΔE00 5.05
Puke Green
#9AAE07
ΔE00 5.65
Snot
#ACBB0D
ΔE00 5.80
Darkkhaki
#BDB76B
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF41 #4141AF
analogous
#AF7841 #AFAF41 #78AF41
triadic
#AFAF41 #41AFAF #AF41AF
tetradic
#AFAF41 #41AF78 #4141AF #AF4178
square
#AFAF41 #41AF78 #4141AF #AF4178
split-complementary
#AFAF41 #4178AF #7841AF
monochromatic
#565620 #828230 #AFAF41 #C6C667 #D7D793
Accessibility & contrast
On white
2.33
#AFAF41 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.03
#AFAF41 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF41
9.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF41 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF41 | 1.00 | 2.33 | 9.03 | 9.03 |
| #FFFFFF | 2.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCA833
Deuteranopia (green-blind)
#BEAC48
Tritanopia (blue-blind)
#BBA498
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #afaf41; /* rgb */ color: rgb(175, 175, 65); /* oklch */ color: oklch(73.3% 0.131 109.2);
Tailwind
colors: {
custom: {
50: '#cac67b',
500: '#afaf41',
950: '#000000',
},
}SCSS
$custom: #afaf41; $custom-light: #cac67b; $custom-dark: #000000;
JSON
{
"hex": "#afaf41",
"rgb": {
"r": 175,
"g": 175,
"b": 65
},
"hsl": {
"h": 60,
"s": 45.833,
"l": 47.059
},
"oklch": {
"l": 0.73291,
"c": 0.13118,
"h": 109.2
},
"luminance": 0.40156
}Semantic roles & 50–950 ramp
primary
#AFAF41
secondary
#8989C2
accent
#52D552
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C