#AFAF46#AFAF46
#AFAF46 is a light, vivid yellow. Relative luminance 0.402; OKLCH L 73.3% C 0.127 H 109.2°. Best body text is #000000 at 9.04:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF46 |
|---|---|
| RGB | rgb(175, 175, 70) |
| HSL | hsl(60, 43%, 48%) |
| HSV | hsv(60, 60%, 69%) |
| CMYK | cmyk(0%, 0%, 60%, 31.4%) |
| CIE-LAB | lab(69.62, -13.73, 52.38) |
| CIE-LCH | lch(69.62, 54.15, 104.69°) |
| OKLab | oklab(73.34% -0.0417 0.1201) |
| OKLCH | oklch(73.34% 0.127 109.2) |
| XYZ | xyz(34.1157, 40.2170, 11.7587) |
| Luminance | 0.4022 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.88
Puke
#A5A502
ΔE00 5.29
Darkkhaki
#BDB76B
ΔE00 5.40
Mustard Green
#A8B504
ΔE00 5.57
Puke Green
#9AAE07
ΔE00 6.03
Booger
#9BB53C
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF46 #4646AF
analogous
#AF7A46 #AFAF46 #7AAF46
triadic
#AFAF46 #46AFAF #AF46AF
tetradic
#AFAF46 #46AF7A #4646AF #AF467A
square
#AFAF46 #46AF7A #4646AF #AF467A
split-complementary
#AFAF46 #467AAF #7A46AF
monochromatic
#585823 #838335 #AFAF46 #C5C56D #D6D699
Accessibility & contrast
On white
2.32
#AFAF46 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.04
#AFAF46 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF46
9.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF46 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF46 | 1.00 | 2.32 | 9.04 | 9.04 |
| #FFFFFF | 2.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCA83A
Deuteranopia (green-blind)
#BEAC4C
Tritanopia (blue-blind)
#BBA599
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #afaf46; /* rgb */ color: rgb(175, 175, 70); /* oklch */ color: oklch(73.3% 0.127 109.2);
Tailwind
colors: {
custom: {
50: '#c9c67e',
500: '#afaf46',
950: '#000000',
},
}SCSS
$custom: #afaf46; $custom-light: #c9c67e; $custom-dark: #000000;
JSON
{
"hex": "#afaf46",
"rgb": {
"r": 175,
"g": 175,
"b": 70
},
"hsl": {
"h": 60,
"s": 42.857,
"l": 48.039
},
"oklch": {
"l": 0.73339,
"c": 0.1271,
"h": 109.2
},
"luminance": 0.40216
}Semantic roles & 50–950 ramp
primary
#AFAF46
secondary
#8E8EC2
accent
#55D355
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C