#AFA52F#AFA52F
#AFA52F is a light, vivid yellow. Relative luminance 0.362; OKLCH L 71.0% C 0.134 H 104.4°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA52F |
|---|---|
| RGB | rgb(175, 165, 47) |
| HSL | hsl(55, 58%, 44%) |
| HSV | hsv(55, 73%, 69%) |
| CMYK | cmyk(0%, 5.7%, 73.1%, 31.4%) |
| CIE-LAB | lab(66.70, -9.89, 58.76) |
| CIE-LCH | lch(66.70, 59.59, 99.55°) |
| OKLab | oklab(70.95% -0.0333 0.1298) |
| OKLCH | oklch(70.95% 0.134 104.4) |
| XYZ | xyz(31.6488, 36.2307, 8.0149) |
| Luminance | 0.3623 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.48
Vomit
#A2A415
ΔE00 3.58
Muddy Yellow
#BFAC05
ΔE00 4.70
Brown Yellow
#B29705
ΔE00 6.19
Olive Yellow
#C2B709
ΔE00 6.25
Pea Soup
#929901
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA52F #2F39AF
analogous
#AF652F #AFA52F #79AF2F
triadic
#AFA52F #2FAFA5 #A52FAF
tetradic
#AFA52F #2FAF65 #2F39AF #AF2F79
square
#AFA52F #2FAF65 #2F39AF #AF2F79
split-complementary
#AFA52F #2F79AF #652FAF
monochromatic
#4F4A15 #7F7822 #AFA52F #CFC54C #DCD47C
Accessibility & contrast
On white
2.55
#AFA52F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.25
#AFA52F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA52F
8.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA52F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA52F | 1.00 | 2.55 | 8.25 | 8.25 |
| #FFFFFF | 2.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B49F1A
Deuteranopia (green-blind)
#B7A537
Tritanopia (blue-blind)
#BC998E
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #afa52f; /* rgb */ color: rgb(175, 165, 47); /* oklch */ color: oklch(71.0% 0.134 104.4);
Tailwind
colors: {
custom: {
50: '#cabf70',
500: '#afa52f',
950: '#000000',
},
}SCSS
$custom: #afa52f; $custom-light: #cabf70; $custom-dark: #000000;
JSON
{
"hex": "#afa52f",
"rgb": {
"r": 175,
"g": 165,
"b": 47
},
"hsl": {
"h": 55.313,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.70951,
"c": 0.134,
"h": 104.4
},
"luminance": 0.36229
}Semantic roles & 50–950 ramp
primary
#AFA52F
secondary
#757BC4
accent
#53E147
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B