#9E7E1D#9E7E1D

#9E7E1D is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.7% C 0.115 H 89.0°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9E7E1D
RGBrgb(158, 126, 29)
HSLhsl(45, 69%, 37%)
HSVhsv(45, 82%, 62%)
CMYKcmyk(0%, 20.3%, 81.6%, 38%)
CIE-LABlab(54.32, 2.87, 53.06)
CIE-LCHlch(54.32, 53.14, 86.90°)
OKLaboklab(60.73% 0.002 0.1147)
OKLCHoklch(60.73% 0.115 89)
XYZxyz(21.7845, 22.2810, 4.3154)
Luminance0.2228 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E7E1D #1D3D9E
analogous
#9E3D1D #9E7E1D #7E9E1D
triadic
#9E7E1D #1D9E7E #7E1D9E
tetradic
#9E7E1D #1D9E3D #1D3D9E #9E1D7E
square
#9E7E1D #1D9E3D #1D3D9E #9E1D7E
split-complementary
#9E7E1D #1D7E9E #3D1D9E
monochromatic
#372C0A #6A5514 #9E7E1D #D2A726 #E0BE56

Accessibility & contrast

On white

3.85
#9E7E1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#9E7E1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E7E1D
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E7E1D#FFFFFF#000000##000000
##9E7E1D1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D05
Deuteranopia (green-blind)
#958623
Tritanopia (blue-blind)
#AC726C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9e7e1d;
/* rgb */ color: rgb(158, 126, 29);
/* oklch */ color: oklch(60.7% 0.115 89.0);
Tailwind
colors: {
  custom: {
    50: '#bfa362',
    500: '#9e7e1d',
    950: '#000000',
  },
}
SCSS
$custom: #9e7e1d;
$custom-light: #bfa362;
$custom-dark: #000000;
JSON
{
  "hex": "#9e7e1d",
  "rgb": {
    "r": 158,
    "g": 126,
    "b": 29
  },
  "hsl": {
    "h": 45.116,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60734,
    "c": 0.11474,
    "h": 89
  },
  "luminance": 0.2228
}

Semantic roles & 50–950 ramp

primary
#9E7E1D
secondary
#546FC3
accent
#68EC3C
background
#FCF9F6
surface
#F8F2EB
border
#D1CCC6
text
#130F06
muted
#827E7A

Preview Lab

Preview with #9E7E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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