#9E8016#9E8016

#9E8016 is a mid, moderate yellow. Relative luminance 0.228; OKLCH L 61.1% C 0.119 H 91.2°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#9E8016
RGBrgb(158, 128, 22)
HSLhsl(47, 76%, 35%)
HSVhsv(47, 86%, 62%)
CMYKcmyk(0%, 19%, 86.1%, 38%)
CIE-LABlab(54.83, 1.53, 55.66)
CIE-LCHlch(54.83, 55.68, 88.43°)
OKLaboklab(61.12% -0.0025 0.1188)
OKLCHoklch(61.12% 0.119 91.2)
XYZxyz(21.9659, 22.7668, 3.9964)
Luminance0.2276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8016 #16349E
analogous
#9E3C16 #9E8016 #789E16
triadic
#9E8016 #169E80 #80169E
tetradic
#9E8016 #169E3C #16349E #9E1678
square
#9E8016 #169E3C #16349E #9E1678
split-complementary
#9E8016 #16789E #3C169E
monochromatic
#332907 #68540F #9E8016 #D4AC1D #E6C349

Accessibility & contrast

On white

3.78
#9E8016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#9E8016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8016
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8016#FFFFFF#000000##000000
##9E80161.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#97871E
Tritanopia (blue-blind)
#AC746D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9e8016;
/* rgb */ color: rgb(158, 128, 22);
/* oklch */ color: oklch(61.1% 0.119 91.2);
Tailwind
colors: {
  custom: {
    50: '#bfa460',
    500: '#9e8016',
    950: '#000000',
  },
}
SCSS
$custom: #9e8016;
$custom-light: #bfa460;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8016",
  "rgb": {
    "r": 158,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 46.765,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61124,
    "c": 0.11887,
    "h": 91.2
  },
  "luminance": 0.22765
}

Semantic roles & 50–950 ramp

primary
#9E8016
secondary
#4965C7
accent
#5FF236
background
#FCFAF5
surface
#F8F3EA
border
#D1CDC6
text
#130F05
muted
#827F79

Preview Lab

Preview with #9E8016

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

Preview Lab → · Contrast checker → · Palette generator →

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