#AFA72F#AFA72F
#AFA72F is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.4% C 0.136 H 105.5°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA72F |
|---|---|
| RGB | rgb(175, 167, 47) |
| HSL | hsl(56, 58%, 44%) |
| HSV | hsv(56, 73%, 69%) |
| CMYK | cmyk(0%, 4.6%, 73.1%, 31.4%) |
| CIE-LAB | lab(67.25, -10.94, 59.29) |
| CIE-LCH | lch(67.25, 60.29, 100.45°) |
| OKLab | oklab(71.39% -0.0363 0.1309) |
| OKLCH | oklch(71.39% 0.136 105.5) |
| XYZ | xyz(32.0123, 36.9578, 8.1361) |
| Luminance | 0.3696 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.14
Vomit
#A2A415
ΔE00 3.24
Muddy Yellow
#BFAC05
ΔE00 4.71
Olive Yellow
#C2B709
ΔE00 5.84
Mustard Green
#A8B504
ΔE00 6.28
Pea Soup
#929901
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA72F #2F37AF
analogous
#AF672F #AFA72F #77AF2F
triadic
#AFA72F #2FAFA7 #A72FAF
tetradic
#AFA72F #2FAF67 #2F37AF #AF2F77
square
#AFA72F #2FAF67 #2F37AF #AF2F77
split-complementary
#AFA72F #2F77AF #672FAF
monochromatic
#4F4B15 #7F7922 #AFA72F #CFC74C #DCD67C
Accessibility & contrast
On white
2.50
#AFA72F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.39
#AFA72F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA72F
8.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA72F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA72F | 1.00 | 2.50 | 8.39 | 8.39 |
| #FFFFFF | 2.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B6A119
Deuteranopia (green-blind)
#B9A638
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #afa72f; /* rgb */ color: rgb(175, 167, 47); /* oklch */ color: oklch(71.4% 0.136 105.5);
Tailwind
colors: {
custom: {
50: '#cac070',
500: '#afa72f',
950: '#000000',
},
}SCSS
$custom: #afa72f; $custom-light: #cac070; $custom-dark: #000000;
JSON
{
"hex": "#afa72f",
"rgb": {
"r": 175,
"g": 167,
"b": 47
},
"hsl": {
"h": 56.25,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.71388,
"c": 0.13585,
"h": 105.5
},
"luminance": 0.36957
}Semantic roles & 50–950 ramp
primary
#AFA72F
secondary
#757AC4
accent
#51E147
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B