#AF9940#AF9940
#AF9940 is a light, moderate yellow. Relative luminance 0.323; OKLCH L 68.5% C 0.111 H 95.4°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9940 |
|---|---|
| RGB | rgb(175, 153, 64) |
| HSL | hsl(48, 46%, 47%) |
| HSV | hsv(48, 63%, 69%) |
| CMYK | cmyk(0%, 12.6%, 63.4%, 31.4%) |
| CIE-LAB | lab(63.56, -2.53, 48.48) |
| CIE-LCH | lch(63.56, 48.55, 92.98°) |
| OKLab | oklab(68.51% -0.0105 0.1109) |
| OKLCH | oklch(68.51% 0.111 95.4) |
| XYZ | xyz(29.9972, 32.2681, 9.4978) |
| Luminance | 0.3227 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 4.98
Baby Shit Brown
#AD900D
ΔE00 5.04
Dark Gold
#B59410
ΔE00 5.12
Baby Poo
#AB9004
ΔE00 5.24
Yellow Brown
#B79400
ΔE00 5.86
Ocher
#BF9B0C
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9940 #4056AF
analogous
#AF6240 #AF9940 #8EAF40
triadic
#AF9940 #40AF99 #9940AF
tetradic
#AF9940 #40AF62 #4056AF #AF408E
square
#AF9940 #40AF62 #4056AF #AF408E
split-complementary
#AF9940 #408EAF #6240AF
monochromatic
#554B1F #827230 #AF9940 #C7B465 #D7CA92
Accessibility & contrast
On white
2.82
#AF9940 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.45
#AF9940 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9940
7.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9940 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9940 | 1.00 | 2.82 | 7.45 | 7.45 |
| #FFFFFF | 2.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.45 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.45 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A89636
Deuteranopia (green-blind)
#AD9D44
Tritanopia (blue-blind)
#BC8E86
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #af9940; /* rgb */ color: rgb(175, 153, 64); /* oklch */ color: oklch(68.5% 0.111 95.4);
Tailwind
colors: {
custom: {
50: '#cab679',
500: '#af9940',
950: '#000000',
},
}SCSS
$custom: #af9940; $custom-light: #cab679; $custom-dark: #000000;
JSON
{
"hex": "#af9940",
"rgb": {
"r": 175,
"g": 153,
"b": 64
},
"hsl": {
"h": 48.108,
"s": 46.444,
"l": 46.863
},
"oklch": {
"l": 0.68508,
"c": 0.11141,
"h": 95.4
},
"luminance": 0.32267
}Semantic roles & 50–950 ramp
primary
#AF9940
secondary
#8894C3
accent
#6CD652
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141109
muted
#82807B