#9E7F16#9E7F16

#9E7F16 is a mid, moderate yellow. Relative luminance 0.225; OKLCH L 60.9% C 0.118 H 90.4°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9E7F16
RGBrgb(158, 127, 22)
HSLhsl(46, 76%, 35%)
HSVhsv(46, 86%, 62%)
CMYKcmyk(0%, 19.6%, 86.1%, 38%)
CIE-LABlab(54.56, 2.09, 55.43)
CIE-LCHlch(54.56, 55.47, 87.84°)
OKLaboklab(60.91% -0.0009 0.1183)
OKLCHoklch(60.91% 0.118 90.4)
XYZxyz(21.8361, 22.5072, 3.9531)
Luminance0.2251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E7F16 #16359E
analogous
#9E3B16 #9E7F16 #799E16
triadic
#9E7F16 #169E7F #7F169E
tetradic
#9E7F16 #169E3B #16359E #9E1679
square
#9E7F16 #169E3B #16359E #9E1679
split-complementary
#9E7F16 #16799E #3B169E
monochromatic
#332907 #68540F #9E7F16 #D4AA1D #E6C249

Accessibility & contrast

On white

3.82
#9E7F16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#9E7F16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E7F16
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E7F16#FFFFFF#000000##000000
##9E7F161.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#96861E
Tritanopia (blue-blind)
#AC736C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9e7f16;
/* rgb */ color: rgb(158, 127, 22);
/* oklch */ color: oklch(60.9% 0.118 90.4);
Tailwind
colors: {
  custom: {
    50: '#bfa35f',
    500: '#9e7f16',
    950: '#000000',
  },
}
SCSS
$custom: #9e7f16;
$custom-light: #bfa35f;
$custom-dark: #000000;
JSON
{
  "hex": "#9e7f16",
  "rgb": {
    "r": 158,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 46.324,
    "s": 75.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.6091,
    "c": 0.11834,
    "h": 90.4
  },
  "luminance": 0.22506
}

Semantic roles & 50–950 ramp

primary
#9E7F16
secondary
#4966C7
accent
#61F236
background
#FCFAF5
surface
#F8F3EA
border
#D1CDC6
text
#130F05
muted
#827F79

Preview Lab

Preview with #9E7F16

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

Preview Lab → · Contrast checker → · Palette generator →

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