#AFAA34#AFAA34
#AFAA34 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.1% C 0.136 H 106.9°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAA34 |
|---|---|
| RGB | rgb(175, 170, 52) |
| HSL | hsl(58, 54%, 45%) |
| HSV | hsv(58, 70%, 69%) |
| CMYK | cmyk(0%, 2.9%, 70.3%, 31.4%) |
| CIE-LAB | lab(68.10, -12.25, 58.26) |
| CIE-LCH | lch(68.10, 59.54, 101.87°) |
| OKLab | oklab(72.08% -0.0395 0.1296) |
| OKLCH | oklch(72.08% 0.136 106.9) |
| XYZ | xyz(32.6750, 38.1125, 8.8834) |
| Luminance | 0.3811 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 3.25
Puke
#A5A502
ΔE00 3.31
Muddy Yellow
#BFAC05
ΔE00 5.25
Mustard Green
#A8B504
ΔE00 5.49
Olive Yellow
#C2B709
ΔE00 5.70
Puke Green
#9AAE07
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAA34 #3439AF
analogous
#AF6D34 #AFAA34 #77AF34
triadic
#AFAA34 #34AFAA #AA34AF
tetradic
#AFAA34 #34AF6D #3439AF #AF3477
square
#AFAA34 #34AF6D #3439AF #AF3477
split-complementary
#AFAA34 #3477AF #6D34AF
monochromatic
#514E18 #807C26 #AFAA34 #CCC754 #DAD783
Accessibility & contrast
On white
2.44
#AFAA34 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.62
#AFAA34 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAA34
8.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAA34 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAA34 | 1.00 | 2.44 | 8.62 | 8.62 |
| #FFFFFF | 2.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B8A321
Deuteranopia (green-blind)
#BBA83C
Tritanopia (blue-blind)
#BC9F93
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #afaa34; /* rgb */ color: rgb(175, 170, 52); /* oklch */ color: oklch(72.1% 0.136 106.9);
Tailwind
colors: {
custom: {
50: '#cac373',
500: '#afaa34',
950: '#000000',
},
}SCSS
$custom: #afaa34; $custom-light: #cac373; $custom-dark: #000000;
JSON
{
"hex": "#afaa34",
"rgb": {
"r": 175,
"g": 170,
"b": 52
},
"hsl": {
"h": 57.561,
"s": 54.185,
"l": 44.51
},
"oklch": {
"l": 0.72082,
"c": 0.13553,
"h": 106.9
},
"luminance": 0.38111
}Semantic roles & 50–950 ramp
primary
#AFAA34
secondary
#7B7EC4
accent
#50DE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B