#AFAF47#AFAF47
#AFAF47 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.4% C 0.126 H 109.1°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF47 |
|---|---|
| RGB | rgb(175, 175, 71) |
| HSL | hsl(60, 42%, 48%) |
| HSV | hsv(60, 59%, 69%) |
| CMYK | cmyk(0%, 0%, 59.4%, 31.4%) |
| CIE-LAB | lab(69.63, -13.66, 51.95) |
| CIE-LCH | lch(69.63, 53.72, 104.73°) |
| OKLab | oklab(73.35% -0.0414 0.1193) |
| OKLCH | oklch(73.35% 0.126 109.1) |
| XYZ | xyz(34.1475, 40.2298, 11.9263) |
| Luminance | 0.4023 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.98
Darkkhaki
#BDB76B
ΔE00 5.29
Puke
#A5A502
ΔE00 5.40
Mustard Green
#A8B504
ΔE00 5.68
Khaki (survey)
#AAA662
ΔE00 6.00
Booger
#9BB53C
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF47 #4747AF
analogous
#AF7B47 #AFAF47 #7BAF47
triadic
#AFAF47 #47AFAF #AF47AF
tetradic
#AFAF47 #47AF7B #4747AF #AF477B
square
#AFAF47 #47AF7B #4747AF #AF477B
split-complementary
#AFAF47 #477BAF #7B47AF
monochromatic
#585824 #838335 #AFAF47 #C4C46F #D6D69A
Accessibility & contrast
On white
2.32
#AFAF47 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.05
#AFAF47 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF47
9.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF47 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF47 | 1.00 | 2.32 | 9.05 | 9.05 |
| #FFFFFF | 2.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCA83B
Deuteranopia (green-blind)
#BEAC4D
Tritanopia (blue-blind)
#BBA599
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #afaf47; /* rgb */ color: rgb(175, 175, 71); /* oklch */ color: oklch(73.4% 0.126 109.1);
Tailwind
colors: {
custom: {
50: '#c9c67e',
500: '#afaf47',
950: '#000000',
},
}SCSS
$custom: #afaf47; $custom-light: #c9c67e; $custom-dark: #000000;
JSON
{
"hex": "#afaf47",
"rgb": {
"r": 175,
"g": 175,
"b": 71
},
"hsl": {
"h": 60,
"s": 42.276,
"l": 48.235
},
"oklch": {
"l": 0.7335,
"c": 0.12625,
"h": 109.1
},
"luminance": 0.40229
}Semantic roles & 50–950 ramp
primary
#AFAF47
secondary
#8F8FC2
accent
#56D256
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C