#9E7D16#9E7D16

#9E7D16 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.5% C 0.117 H 88.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#9E7D16
RGBrgb(158, 125, 22)
HSLhsl(45, 76%, 35%)
HSVhsv(45, 86%, 62%)
CMYKcmyk(0%, 20.9%, 86.1%, 38%)
CIE-LABlab(54.02, 3.21, 54.98)
CIE-LCHlch(54.02, 55.08, 86.66°)
OKLaboklab(60.49% 0.0023 0.1174)
OKLCHoklch(60.49% 0.117 88.9)
XYZxyz(21.5804, 21.9958, 3.8679)
Luminance0.2199 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E7D16 #16379E
analogous
#9E3916 #9E7D16 #7B9E16
triadic
#9E7D16 #169E7D #7D169E
tetradic
#9E7D16 #169E39 #16379E #9E167B
square
#9E7D16 #169E39 #16379E #9E167B
split-complementary
#9E7D16 #167B9E #39169E
monochromatic
#332807 #68520F #9E7D16 #D4A71D #E6C049

Accessibility & contrast

On white

3.89
#9E7D16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#9E7D16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E7D16
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E7D16#FFFFFF#000000##000000
##9E7D161.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#95851D
Tritanopia (blue-blind)
#AC716B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9e7d16;
/* rgb */ color: rgb(158, 125, 22);
/* oklch */ color: oklch(60.5% 0.117 88.9);
Tailwind
colors: {
  custom: {
    50: '#bfa25f',
    500: '#9e7d16',
    950: '#000000',
  },
}
SCSS
$custom: #9e7d16;
$custom-light: #bfa25f;
$custom-dark: #000000;
JSON
{
  "hex": "#9e7d16",
  "rgb": {
    "r": 158,
    "g": 125,
    "b": 22
  },
  "hsl": {
    "h": 45.441,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60486,
    "c": 0.11737,
    "h": 88.9
  },
  "luminance": 0.21994
}

Semantic roles & 50–950 ramp

primary
#9E7D16
secondary
#4967C7
accent
#63F236
background
#FCF9F5
surface
#F8F2EA
border
#D1CCC6
text
#130F05
muted
#827E79

Preview Lab

Preview with #9E7D16

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

Preview Lab → · Contrast checker → · Palette generator →

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