#9F7F15#9F7F15

#9F7F15 is a mid, moderate yellow. Relative luminance 0.226; OKLCH L 61.0% C 0.119 H 89.9°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9F7F15
RGBrgb(159, 127, 21)
HSLhsl(46, 77%, 35%)
HSVhsv(46, 87%, 62%)
CMYKcmyk(0%, 20.1%, 86.8%, 37.6%)
CIE-LABlab(54.66, 2.52, 55.84)
CIE-LCHlch(54.66, 55.89, 87.41°)
OKLaboklab(61.01% 0.0002 0.119)
OKLCHoklch(61.01% 0.119 89.9)
XYZxyz(22.0242, 22.6053, 3.9126)
Luminance0.2260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F7F15 #15359F
analogous
#9F3A15 #9F7F15 #7A9F15
triadic
#9F7F15 #159F7F #7F159F
tetradic
#9F7F15 #159F3A #15359F #9F157A
square
#9F7F15 #159F3A #15359F #9F157A
split-complementary
#9F7F15 #157A9F #3A159F
monochromatic
#332907 #69540E #9F7F15 #D5AA1C #E7C248

Accessibility & contrast

On white

3.80
#9F7F15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#9F7F15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F7F15
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F7F15#FFFFFF#000000##000000
##9F7F151.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#97861D
Tritanopia (blue-blind)
#AD736C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9f7f15;
/* rgb */ color: rgb(159, 127, 21);
/* oklch */ color: oklch(61.0% 0.119 89.9);
Tailwind
colors: {
  custom: {
    50: '#c0a35f',
    500: '#9f7f15',
    950: '#000000',
  },
}
SCSS
$custom: #9f7f15;
$custom-light: #c0a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#9f7f15",
  "rgb": {
    "r": 159,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 46.087,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61014,
    "c": 0.11895,
    "h": 89.9
  },
  "luminance": 0.22604
}

Semantic roles & 50–950 ramp

primary
#9F7F15
secondary
#4866C8
accent
#61F335
background
#FCFAF5
surface
#F8F3EA
border
#D1CDC6
text
#130F05
muted
#827F79

Preview Lab

Preview with #9F7F15

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9F7F15 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva