#AFAA42#AFAA42
#AFAA42 is a light, vivid yellow. Relative luminance 0.383; OKLCH L 72.2% C 0.125 H 106.5°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAA42 |
|---|---|
| RGB | rgb(175, 170, 66) |
| HSL | hsl(57, 45%, 47%) |
| HSV | hsv(57, 62%, 69%) |
| CMYK | cmyk(0%, 2.9%, 62.3%, 31.4%) |
| CIE-LAB | lab(68.21, -11.42, 52.62) |
| CIE-LCH | lch(68.21, 53.84, 102.24°) |
| OKLab | oklab(72.2% -0.0356 0.12) |
| OKLCH | oklch(72.2% 0.125 106.5) |
| XYZ | xyz(33.0384, 38.2578, 10.7974) |
| Luminance | 0.3826 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.33
Puke
#A5A502
ΔE00 4.68
Khaki (survey)
#AAA662
ΔE00 5.77
Darkkhaki
#BDB76B
ΔE00 5.89
Muddy Yellow
#BFAC05
ΔE00 6.39
Mustard Green
#A8B504
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAA42 #4247AF
analogous
#AF7442 #AFAA42 #7DAF42
triadic
#AFAA42 #42AFAA #AA42AF
tetradic
#AFAA42 #42AF74 #4247AF #AF427D
square
#AFAA42 #42AF74 #4247AF #AF427D
split-complementary
#AFAA42 #427DAF #7442AF
monochromatic
#565420 #837F31 #AFAA42 #C6C268 #D7D495
Accessibility & contrast
On white
2.43
#AFAA42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.65
#AFAA42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAA42
8.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAA42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAA42 | 1.00 | 2.43 | 8.65 | 8.65 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B8A436
Deuteranopia (green-blind)
#BAA848
Tritanopia (blue-blind)
#BB9F94
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #afaa42; /* rgb */ color: rgb(175, 170, 66); /* oklch */ color: oklch(72.2% 0.125 106.5);
Tailwind
colors: {
custom: {
50: '#cac37b',
500: '#afaa42',
950: '#000000',
},
}SCSS
$custom: #afaa42; $custom-light: #cac37b; $custom-dark: #000000;
JSON
{
"hex": "#afaa42",
"rgb": {
"r": 175,
"g": 170,
"b": 66
},
"hsl": {
"h": 57.248,
"s": 45.228,
"l": 47.255
},
"oklch": {
"l": 0.72201,
"c": 0.12516,
"h": 106.5
},
"luminance": 0.38257
}Semantic roles & 50–950 ramp
primary
#AFAA42
secondary
#8A8DC2
accent
#59D553
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#14120A
muted
#82817C