#9F7E14#9F7E14

#9F7E14 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.8% C 0.119 H 89.2°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9F7E14
RGBrgb(159, 126, 20)
HSLhsl(46, 78%, 35%)
HSVhsv(46, 87%, 62%)
CMYKcmyk(0%, 20.8%, 87.4%, 37.6%)
CIE-LABlab(54.39, 3.06, 55.88)
CIE-LCHlch(54.39, 55.96, 86.87°)
OKLaboklab(60.8% 0.0016 0.1188)
OKLCHoklch(60.8% 0.119 89.2)
XYZxyz(21.8866, 22.3447, 3.8219)
Luminance0.2234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F7E14 #14359F
analogous
#9F3814 #9F7E14 #7B9F14
triadic
#9F7E14 #149F7E #7E149F
tetradic
#9F7E14 #149F38 #14359F #9F147B
square
#9F7E14 #149F38 #14359F #9F147B
split-complementary
#9F7E14 #147B9F #38149F
monochromatic
#322806 #69530D #9F7E14 #D5A91B #E8C146

Accessibility & contrast

On white

3.84
#9F7E14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#9F7E14 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F7E14
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F7E14#FFFFFF#000000##000000
##9F7E141.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#96861C
Tritanopia (blue-blind)
#AD726B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9f7e14;
/* rgb */ color: rgb(159, 126, 20);
/* oklch */ color: oklch(60.8% 0.119 89.2);
Tailwind
colors: {
  custom: {
    50: '#c0a35f',
    500: '#9f7e14',
    950: '#000000',
  },
}
SCSS
$custom: #9f7e14;
$custom-light: #c0a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#9f7e14",
  "rgb": {
    "r": 159,
    "g": 126,
    "b": 20
  },
  "hsl": {
    "h": 45.755,
    "s": 77.654,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60798,
    "c": 0.11885,
    "h": 89.2
  },
  "luminance": 0.22343
}

Semantic roles & 50–950 ramp

primary
#9F7E14
secondary
#4665C8
accent
#61F434
background
#FCF9F5
surface
#F8F2EA
border
#D1CCC6
text
#130F05
muted
#827E79

Preview Lab

Preview with #9F7E14

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

Preview Lab → · Contrast checker → · Palette generator →

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