#9F7F18#9F7F18
#9F7F18 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 61.0% C 0.118 H 89.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).
Color values
| HEX | #9F7F18 |
|---|---|
| RGB | rgb(159, 127, 24) |
| HSL | hsl(46, 74%, 36%) |
| HSV | hsv(46, 85%, 62%) |
| CMYK | cmyk(0%, 20.1%, 84.9%, 37.6%) |
| CIE-LAB | lab(54.68, 2.61, 54.99) |
| CIE-LCH | lch(54.68, 55.06, 87.28°) |
| OKLab | oklab(61.03% 0.0007 0.1178) |
| OKLCH | oklch(61.03% 0.118 89.7) |
| XYZ | xyz(22.0537, 22.6171, 4.0679) |
| Luminance | 0.2262 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Brown
#9B7A01
ΔE00 2.03
Diarrhea
#9F8303
ΔE00 2.51
Puke Brown
#947706
ΔE00 3.41
Baby Poop
#937C00
ΔE00 3.68
Dark Mustard
#A88905
ΔE00 4.07
Mustard Brown
#AC7E04
ΔE00 4.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F7F18 #18389F
analogous
#9F3C18 #9F7F18 #7B9F18
triadic
#9F7F18 #189F7F #7F189F
tetradic
#9F7F18 #189F3C #18389F #9F187B
square
#9F7F18 #189F3C #18389F #9F187B
split-complementary
#9F7F18 #187B9F #3C189F
monochromatic
#352A08 #6A5510 #9F7F18 #D4A920 #E4C04D
Accessibility & contrast
On white
3.80
#9F7F18 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.52
#9F7F18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F7F18
5.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F7F18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F7F18 | 1.00 | 3.80 | 5.52 | 5.52 |
| #FFFFFF | 3.80 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.52 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.52 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#97861F
Tritanopia (blue-blind)
#AD736C
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #9f7f18; /* rgb */ color: rgb(159, 127, 24); /* oklch */ color: oklch(61.0% 0.118 89.7);
Tailwind
colors: {
custom: {
50: '#c0a360',
500: '#9f7f18',
950: '#000000',
},
}SCSS
$custom: #9f7f18; $custom-light: #c0a360; $custom-dark: #000000;
JSON
{
"hex": "#9f7f18",
"rgb": {
"r": 159,
"g": 127,
"b": 24
},
"hsl": {
"h": 45.778,
"s": 73.77,
"l": 35.882
},
"oklch": {
"l": 0.61028,
"c": 0.11776,
"h": 89.7
},
"luminance": 0.22616
}Semantic roles & 50–950 ramp
primary
#9F7F18
secondary
#4D69C6
accent
#63F037
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F05
muted
#827F7A