#AF9838#AF9838
#AF9838 is a light, moderate yellow. Relative luminance 0.319; OKLCH L 68.2% C 0.117 H 95.6°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9838 |
|---|---|
| RGB | rgb(175, 152, 56) |
| HSL | hsl(48, 52%, 45%) |
| HSV | hsv(48, 68%, 69%) |
| CMYK | cmyk(0%, 13.1%, 68%, 31.4%) |
| CIE-LAB | lab(63.22, -2.49, 51.69) |
| CIE-LCH | lch(63.22, 51.75, 92.75°) |
| OKLab | oklab(68.22% -0.0113 0.1165) |
| OKLCH | oklch(68.22% 0.117 95.6) |
| XYZ | xyz(29.6227, 31.8575, 8.3294) |
| Luminance | 0.3186 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.98
Baby Shit Brown
#AD900D
ΔE00 4.08
Dark Gold
#B59410
ΔE00 4.20
Baby Poo
#AB9004
ΔE00 4.25
Yellow Brown
#B79400
ΔE00 4.96
Ocher
#BF9B0C
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9838 #384FAF
analogous
#AF5C38 #AF9838 #8BAF38
triadic
#AF9838 #38AF98 #9838AF
tetradic
#AF9838 #38AF5C #384FAF #AF388B
square
#AF9838 #38AF5C #384FAF #AF388B
split-complementary
#AF9838 #388BAF #5C38AF
monochromatic
#52471A #817029 #AF9838 #CAB55A #D9C988
Accessibility & contrast
On white
2.85
#AF9838 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.37
#AF9838 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9838
7.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9838 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9838 | 1.00 | 2.85 | 7.37 | 7.37 |
| #FFFFFF | 2.85 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.37 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.37 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A7952C
Deuteranopia (green-blind)
#AD9C3D
Tritanopia (blue-blind)
#BD8D84
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #af9838; /* rgb */ color: rgb(175, 152, 56); /* oklch */ color: oklch(68.2% 0.117 95.6);
Tailwind
colors: {
custom: {
50: '#cab674',
500: '#af9838',
950: '#000000',
},
}SCSS
$custom: #af9838; $custom-light: #cab674; $custom-dark: #000000;
JSON
{
"hex": "#af9838",
"rgb": {
"r": 175,
"g": 152,
"b": 56
},
"hsl": {
"h": 48.403,
"s": 51.515,
"l": 45.294
},
"oklch": {
"l": 0.68217,
"c": 0.11702,
"h": 95.6
},
"luminance": 0.31856
}Semantic roles & 50–950 ramp
primary
#AF9838
secondary
#808DC3
accent
#68DB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B