#9E7C16#9E7C16

#9E7C16 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 60.3% C 0.117 H 88.1°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#9E7C16
RGBrgb(158, 124, 22)
HSLhsl(45, 76%, 35%)
HSVhsv(45, 86%, 62%)
CMYKcmyk(0%, 21.5%, 86.1%, 38%)
CIE-LABlab(53.75, 3.77, 54.76)
CIE-LCHlch(53.75, 54.89, 86.06°)
OKLaboklab(60.28% 0.0039 0.1169)
OKLCHoklch(60.28% 0.117 88.1)
XYZxyz(21.4544, 21.7438, 3.8259)
Luminance0.2174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E7C16 #16389E
analogous
#9E3816 #9E7C16 #7C9E16
triadic
#9E7C16 #169E7C #7C169E
tetradic
#9E7C16 #169E38 #16389E #9E167C
square
#9E7C16 #169E38 #16389E #9E167C
split-complementary
#9E7C16 #167C9E #38169E
monochromatic
#332807 #68520F #9E7C16 #D4A61D #E6BE49

Accessibility & contrast

On white

3.93
#9E7C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#9E7C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E7C16
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E7C16#FFFFFF#000000##000000
##9E7C161.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#94841D
Tritanopia (blue-blind)
#AC706A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9e7c16;
/* rgb */ color: rgb(158, 124, 22);
/* oklch */ color: oklch(60.3% 0.117 88.1);
Tailwind
colors: {
  custom: {
    50: '#bfa15f',
    500: '#9e7c16',
    950: '#000000',
  },
}
SCSS
$custom: #9e7c16;
$custom-light: #bfa15f;
$custom-dark: #000000;
JSON
{
  "hex": "#9e7c16",
  "rgb": {
    "r": 158,
    "g": 124,
    "b": 22
  },
  "hsl": {
    "h": 45,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60275,
    "c": 0.11692,
    "h": 88.1
  },
  "luminance": 0.21742
}

Semantic roles & 50–950 ramp

primary
#9E7C16
secondary
#4968C7
accent
#65F236
background
#FCF9F5
surface
#F8F2EA
border
#D1CCC6
text
#130E05
muted
#827E79

Preview Lab

Preview with #9E7C16

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

Preview Lab → · Contrast checker → · Palette generator →

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