#AF9728#AF9728
#AF9728 is a light, vivid yellow. Relative luminance 0.314; OKLCH L 67.9% C 0.127 H 96.3°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9728 |
|---|---|
| RGB | rgb(175, 151, 40) |
| HSL | hsl(49, 63%, 42%) |
| HSV | hsv(49, 77%, 69%) |
| CMYK | cmyk(0%, 13.7%, 77.1%, 31.4%) |
| CIE-LAB | lab(62.85, -2.74, 57.64) |
| CIE-LCH | lch(62.85, 57.70, 92.72°) |
| OKLab | oklab(67.88% -0.0138 0.126) |
| OKLCH | oklch(67.88% 0.127 96.3) |
| XYZ | xyz(29.1304, 31.4020, 6.5339) |
| Luminance | 0.3140 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 2.30
Baby Shit Brown
#AD900D
ΔE00 2.76
Baby Poo
#AB9004
ΔE00 2.81
Dark Gold
#B59410
ΔE00 2.96
Yellow Brown
#B79400
ΔE00 3.70
Ocher
#BF9B0C
ΔE00 4.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9728 #2840AF
analogous
#AF5328 #AF9728 #84AF28
triadic
#AF9728 #28AF97 #9728AF
tetradic
#AF9728 #28AF53 #2840AF #AF2884
square
#AF9728 #28AF53 #2840AF #AF2884
split-complementary
#AF9728 #2884AF #5328AF
monochromatic
#4B4111 #7D6C1D #AF9728 #D4B941 #DFCC73
Accessibility & contrast
On white
2.88
#AF9728 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.28
#AF9728 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9728
7.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9728 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9728 | 1.00 | 2.88 | 7.28 | 7.28 |
| #FFFFFF | 2.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A79411
Deuteranopia (green-blind)
#AD9B2F
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #af9728; /* rgb */ color: rgb(175, 151, 40); /* oklch */ color: oklch(67.9% 0.127 96.3);
Tailwind
colors: {
custom: {
50: '#cbb56b',
500: '#af9728',
950: '#000000',
},
}SCSS
$custom: #af9728; $custom-light: #cbb56b; $custom-dark: #000000;
JSON
{
"hex": "#af9728",
"rgb": {
"r": 175,
"g": 151,
"b": 40
},
"hsl": {
"h": 49.333,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.67882,
"c": 0.1268,
"h": 96.3
},
"luminance": 0.314
}Semantic roles & 50–950 ramp
primary
#AF9728
secondary
#6D7DC6
accent
#5FE642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A