#9F8218#9F8218
#9F8218 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.7% C 0.119 H 92.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).
Color values
| HEX | #9F8218 |
|---|---|
| RGB | rgb(159, 130, 24) |
| HSL | hsl(47, 74%, 36%) |
| HSV | hsv(47, 85%, 62%) |
| CMYK | cmyk(0%, 18.2%, 84.9%, 37.6%) |
| CIE-LAB | lab(55.49, 0.93, 55.68) |
| CIE-LCH | lch(55.49, 55.69, 89.04°) |
| OKLab | oklab(61.67% -0.0041 0.1193) |
| OKLCH | oklch(61.67% 0.119 92) |
| XYZ | xyz(22.4469, 23.4036, 4.1990) |
| Luminance | 0.2340 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 1.44
Yellowish Brown
#9B7A01
ΔE00 2.99
Dark Mustard
#A88905
ΔE00 3.11
Baby Poop
#937C00
ΔE00 3.42
Puke Brown
#947706
ΔE00 4.11
Yellowy Brown
#AE8B0C
ΔE00 4.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F8218 #18359F
analogous
#9F3E18 #9F8218 #789F18
triadic
#9F8218 #189F82 #82189F
tetradic
#9F8218 #189F3E #18359F #9F1878
square
#9F8218 #189F3E #18359F #9F1878
split-complementary
#9F8218 #18789F #3E189F
monochromatic
#352B08 #6A5710 #9F8218 #D4AD20 #E4C44D
Accessibility & contrast
On white
3.70
#9F8218 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.68
#9F8218 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F8218
5.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F8218 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F8218 | 1.00 | 3.70 | 5.68 | 5.68 |
| #FFFFFF | 3.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#998820
Tritanopia (blue-blind)
#AD766F
Achromatopsia (no color)
#858585
Design tokens & code
CSS
--color: #9f8218; /* rgb */ color: rgb(159, 130, 24); /* oklch */ color: oklch(61.7% 0.119 92.0);
Tailwind
colors: {
custom: {
50: '#c0a561',
500: '#9f8218',
950: '#000000',
},
}SCSS
$custom: #9f8218; $custom-light: #c0a561; $custom-dark: #000000;
JSON
{
"hex": "#9f8218",
"rgb": {
"r": 159,
"g": 130,
"b": 24
},
"hsl": {
"h": 47.111,
"s": 73.77,
"l": 35.882
},
"oklch": {
"l": 0.61666,
"c": 0.11933,
"h": 92
},
"luminance": 0.23402
}Semantic roles & 50–950 ramp
primary
#9F8218
secondary
#4D67C6
accent
#5FF037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A