#9E8316#9E8316

#9E8316 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.8% C 0.121 H 93.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9E8316
RGBrgb(158, 131, 22)
HSLhsl(48, 76%, 35%)
HSVhsv(48, 86%, 62%)
CMYKcmyk(0%, 17.1%, 86.1%, 38%)
CIE-LABlab(55.65, -0.14, 56.33)
CIE-LCHlch(55.65, 56.34, 90.15°)
OKLaboklab(61.77% -0.0072 0.1203)
OKLCHoklch(61.77% 0.121 93.4)
XYZxyz(22.3630, 23.5610, 4.1288)
Luminance0.2356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8316 #16319E
analogous
#9E3F16 #9E8316 #759E16
triadic
#9E8316 #169E83 #83169E
tetradic
#9E8316 #169E3F #16319E #9E1675
square
#9E8316 #169E3F #16319E #9E1675
split-complementary
#9E8316 #16759E #3F169E
monochromatic
#332A07 #68560F #9E8316 #D4B01D #E6C649

Accessibility & contrast

On white

3.68
#9E8316 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#9E8316 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8316
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8316#FFFFFF#000000##000000
##9E83161.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#99891F
Tritanopia (blue-blind)
#AC7770
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9e8316;
/* rgb */ color: rgb(158, 131, 22);
/* oklch */ color: oklch(61.8% 0.121 93.4);
Tailwind
colors: {
  custom: {
    50: '#bfa660',
    500: '#9e8316',
    950: '#000000',
  },
}
SCSS
$custom: #9e8316;
$custom-light: #bfa660;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8316",
  "rgb": {
    "r": 158,
    "g": 131,
    "b": 22
  },
  "hsl": {
    "h": 48.088,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61766,
    "c": 0.12056,
    "h": 93.4
  },
  "luminance": 0.2356
}

Semantic roles & 50–950 ramp

primary
#9E8316
secondary
#4962C7
accent
#5BF236
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9E8316

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

Preview Lab → · Contrast checker → · Palette generator →

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