#9E871D#9E871D

#9E871D is a light, vivid yellow. Relative luminance 0.247; OKLCH L 62.7% C 0.120 H 95.9°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9E871D
RGBrgb(158, 135, 29)
HSLhsl(49, 69%, 37%)
HSVhsv(49, 82%, 62%)
CMYKcmyk(0%, 14.6%, 81.6%, 38%)
CIE-LABlab(56.77, -2.14, 55.23)
CIE-LCHlch(56.77, 55.27, 92.22°)
OKLaboklab(62.66% -0.0123 0.1194)
OKLCHoklch(62.66% 0.12 95.9)
XYZxyz(22.9876, 24.6871, 4.7164)
Luminance0.2469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E871D #1D349E
analogous
#9E461D #9E871D #759E1D
triadic
#9E871D #1D9E87 #871D9E
tetradic
#9E871D #1D9E46 #1D349E #9E1D75
square
#9E871D #1D9E46 #1D349E #9E1D75
split-complementary
#9E871D #1D759E #461D9E
monochromatic
#372F0A #6A5B14 #9E871D #D2B326 #E0C756

Accessibility & contrast

On white

3.54
#9E871D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#9E871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E871D
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E871D#FFFFFF#000000##000000
##9E871D1.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#9C8B25
Tritanopia (blue-blind)
#AB7C73
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9e871d;
/* rgb */ color: rgb(158, 135, 29);
/* oklch */ color: oklch(62.7% 0.120 95.9);
Tailwind
colors: {
  custom: {
    50: '#bfa963',
    500: '#9e871d',
    950: '#000000',
  },
}
SCSS
$custom: #9e871d;
$custom-light: #bfa963;
$custom-dark: #000000;
JSON
{
  "hex": "#9e871d",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 49.302,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62664,
    "c": 0.12003,
    "h": 95.9
  },
  "luminance": 0.24686
}

Semantic roles & 50–950 ramp

primary
#9E871D
secondary
#5467C3
accent
#5BEC3C
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9E871D

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

Preview Lab → · Contrast checker → · Palette generator →

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