#AF972F#AF972F
#AF972F is a light, vivid yellow. Relative luminance 0.315; OKLCH L 67.9% C 0.123 H 95.7°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).
Color values
| HEX | #AF972F |
|---|---|
| RGB | rgb(175, 151, 47) |
| HSL | hsl(49, 58%, 44%) |
| HSV | hsv(49, 73%, 69%) |
| CMYK | cmyk(0%, 13.7%, 73.1%, 31.4%) |
| CIE-LAB | lab(62.89, -2.43, 55.07) |
| CIE-LCH | lch(62.89, 55.12, 92.52°) |
| OKLab | oklab(67.93% -0.0122 0.122) |
| OKLCH | oklch(67.93% 0.123 95.7) |
| XYZ | xyz(29.2604, 31.4540, 7.2188) |
| Luminance | 0.3145 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 2.99
Baby Shit Brown
#AD900D
ΔE00 3.15
Baby Poo
#AB9004
ΔE00 3.29
Dark Gold
#B59410
ΔE00 3.33
Yellow Brown
#B79400
ΔE00 4.09
Ocher
#BF9B0C
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF972F #2F47AF
analogous
#AF572F #AF972F #87AF2F
triadic
#AF972F #2FAF97 #972FAF
tetradic
#AF972F #2FAF57 #2F47AF #AF2F87
square
#AF972F #2FAF57 #2F47AF #AF2F87
split-complementary
#AF972F #2F87AF #572FAF
monochromatic
#4F4415 #7F6D22 #AF972F #CFB64C #DCCA7C
Accessibility & contrast
On white
2.88
#AF972F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.29
#AF972F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF972F
7.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF972F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF972F | 1.00 | 2.88 | 7.29 | 7.29 |
| #FFFFFF | 2.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A7941F
Deuteranopia (green-blind)
#AD9B35
Tritanopia (blue-blind)
#BD8B82
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #af972f; /* rgb */ color: rgb(175, 151, 47); /* oklch */ color: oklch(67.9% 0.123 95.7);
Tailwind
colors: {
custom: {
50: '#cbb56f',
500: '#af972f',
950: '#000000',
},
}SCSS
$custom: #af972f; $custom-light: #cbb56f; $custom-dark: #000000;
JSON
{
"hex": "#af972f",
"rgb": {
"r": 175,
"g": 151,
"b": 47
},
"hsl": {
"h": 48.75,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.6793,
"c": 0.12258,
"h": 95.7
},
"luminance": 0.31452
}Semantic roles & 50–950 ramp
primary
#AF972F
secondary
#7584C4
accent
#64E147
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B