#AFA751#AFA751
#AFA751 is a light, moderate yellow. Relative luminance 0.373; OKLCH L 71.7% C 0.109 H 104.0°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA751 |
|---|---|
| RGB | rgb(175, 167, 81) |
| HSL | hsl(55, 37%, 50%) |
| HSV | hsv(55, 54%, 69%) |
| CMYK | cmyk(0%, 4.6%, 53.7%, 31.4%) |
| CIE-LAB | lab(67.54, -8.70, 44.91) |
| CIE-LCH | lch(67.54, 45.74, 100.97°) |
| OKLab | oklab(71.71% -0.0262 0.1054) |
| OKLCH | oklch(71.71% 0.109 104) |
| XYZ | xyz(32.9841, 37.3465, 13.2541) |
| Luminance | 0.3735 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.45
Darkkhaki
#BDB76B
ΔE00 4.94
Vomit
#A2A415
ΔE00 6.44
Puke
#A5A502
ΔE00 6.92
Sandy Brown
#C4A661
ΔE00 7.82
Desert
#CCAD60
ΔE00 7.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA751 #5159AF
analogous
#AF7851 #AFA751 #88AF51
triadic
#AFA751 #51AFA7 #A751AF
tetradic
#AFA751 #51AF78 #5159AF #AF5188
square
#AFA751 #51AF78 #5159AF #AF5188
split-complementary
#AFA751 #5188AF #7851AF
monochromatic
#5C572A #857F3D #AFA751 #C2BC7B #D6D1A5
Accessibility & contrast
On white
2.48
#AFA751 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.47
#AFA751 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA751
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA751 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA751 | 1.00 | 2.48 | 8.47 | 8.47 |
| #FFFFFF | 2.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B4A249
Deuteranopia (green-blind)
#B7A655
Tritanopia (blue-blind)
#BA9D94
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #afa751; /* rgb */ color: rgb(175, 167, 81); /* oklch */ color: oklch(71.7% 0.109 104.0);
Tailwind
colors: {
custom: {
50: '#c9c084',
500: '#afa751',
950: '#000000',
},
}SCSS
$custom: #afa751; $custom-light: #c9c084; $custom-dark: #000000;
JSON
{
"hex": "#afa751",
"rgb": {
"r": 175,
"g": 167,
"b": 81
},
"hsl": {
"h": 54.894,
"s": 37.008,
"l": 50.196
},
"oklch": {
"l": 0.71713,
"c": 0.10858,
"h": 104
},
"luminance": 0.37345
}Semantic roles & 50–950 ramp
primary
#AFA751
secondary
#999CC3
accent
#65CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C