#AFA73B#AFA73B
#AFA73B is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.5% C 0.128 H 105.1°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA73B |
|---|---|
| RGB | rgb(175, 167, 59) |
| HSL | hsl(56, 50%, 46%) |
| HSV | hsv(56, 66%, 69%) |
| CMYK | cmyk(0%, 4.6%, 66.3%, 31.4%) |
| CIE-LAB | lab(67.33, -10.30, 54.68) |
| CIE-LCH | lch(67.33, 55.64, 100.66°) |
| OKLab | oklab(71.48% -0.0332 0.1233) |
| OKLCH | oklch(71.48% 0.128 105.1) |
| XYZ | xyz(32.2886, 37.0683, 9.5909) |
| Luminance | 0.3707 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 3.96
Puke
#A5A502
ΔE00 4.16
Muddy Yellow
#BFAC05
ΔE00 5.62
Khaki (survey)
#AAA662
ΔE00 6.35
Olive Yellow
#C2B709
ΔE00 6.67
Darkkhaki
#BDB76B
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA73B #3B43AF
analogous
#AF6D3B #AFA73B #7DAF3B
triadic
#AFA73B #3BAFA7 #A73BAF
tetradic
#AFA73B #3BAF6D #3B43AF #AF3B7D
square
#AFA73B #3BAF6D #3B43AF #AF3B7D
split-complementary
#AFA73B #3B7DAF #6D3BAF
monochromatic
#53501C #817B2C #AFA73B #C9C15E #D8D38C
Accessibility & contrast
On white
2.50
#AFA73B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.41
#AFA73B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA73B
8.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA73B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA73B | 1.00 | 2.50 | 8.41 | 8.41 |
| #FFFFFF | 2.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B5A12D
Deuteranopia (green-blind)
#B8A642
Tritanopia (blue-blind)
#BC9C91
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #afa73b; /* rgb */ color: rgb(175, 167, 59); /* oklch */ color: oklch(71.5% 0.128 105.1);
Tailwind
colors: {
custom: {
50: '#cac077',
500: '#afa73b',
950: '#000000',
},
}SCSS
$custom: #afa73b; $custom-light: #cac077; $custom-dark: #000000;
JSON
{
"hex": "#afa73b",
"rgb": {
"r": 175,
"g": 167,
"b": 59
},
"hsl": {
"h": 55.862,
"s": 49.573,
"l": 45.882
},
"oklch": {
"l": 0.71481,
"c": 0.12768,
"h": 105.1
},
"luminance": 0.37067
}Semantic roles & 50–950 ramp
primary
#AFA73B
secondary
#8387C3
accent
#58D94F
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B