#AFA52E#AFA52E
#AFA52E is a light, vivid yellow. Relative luminance 0.362; OKLCH L 70.9% C 0.135 H 104.4°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA52E |
|---|---|
| RGB | rgb(175, 165, 46) |
| HSL | hsl(55, 58%, 43%) |
| HSV | hsv(55, 74%, 69%) |
| CMYK | cmyk(0%, 5.7%, 73.7%, 31.4%) |
| CIE-LAB | lab(66.69, -9.94, 59.12) |
| CIE-LCH | lch(66.69, 59.95, 99.54°) |
| OKLab | oklab(70.94% -0.0336 0.1304) |
| OKLCH | oklch(70.94% 0.135 104.4) |
| XYZ | xyz(31.6288, 36.2227, 7.9099) |
| Luminance | 0.3622 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.42
Vomit
#A2A415
ΔE00 3.54
Muddy Yellow
#BFAC05
ΔE00 4.64
Brown Yellow
#B29705
ΔE00 6.16
Olive Yellow
#C2B709
ΔE00 6.19
Brownish Yellow
#C9B003
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA52E #2E38AF
analogous
#AF642E #AFA52E #78AF2E
triadic
#AFA52E #2EAFA5 #A52EAF
tetradic
#AFA52E #2EAF64 #2E38AF #AF2E78
square
#AFA52E #2EAF64 #2E38AF #AF2E78
split-complementary
#AFA52E #2E78AF #642EAF
monochromatic
#4E4A15 #7F7721 #AFA52E #D0C54B #DCD57B
Accessibility & contrast
On white
2.55
#AFA52E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.24
#AFA52E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA52E
8.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA52E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA52E | 1.00 | 2.55 | 8.24 | 8.24 |
| #FFFFFF | 2.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B49F18
Deuteranopia (green-blind)
#B7A537
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #afa52e; /* rgb */ color: rgb(175, 165, 46); /* oklch */ color: oklch(70.9% 0.135 104.4);
Tailwind
colors: {
custom: {
50: '#cabf6f',
500: '#afa52e',
950: '#000000',
},
}SCSS
$custom: #afa52e; $custom-light: #cabf6f; $custom-dark: #000000;
JSON
{
"hex": "#afa52e",
"rgb": {
"r": 175,
"g": 165,
"b": 46
},
"hsl": {
"h": 55.349,
"s": 58.371,
"l": 43.333
},
"oklch": {
"l": 0.70944,
"c": 0.13461,
"h": 104.4
},
"luminance": 0.36221
}Semantic roles & 50–950 ramp
primary
#AFA52E
secondary
#747AC5
accent
#52E246
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B