#9E871A#9E871A

#9E871A is a light, vivid yellow. Relative luminance 0.247; OKLCH L 62.6% C 0.121 H 96.1°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9E871A
RGBrgb(158, 135, 26)
HSLhsl(50, 72%, 36%)
HSVhsv(50, 84%, 62%)
CMYKcmyk(0%, 14.6%, 83.5%, 38%)
CIE-LABlab(56.76, -2.24, 56.14)
CIE-LCHlch(56.76, 56.18, 92.28°)
OKLaboklab(62.65% -0.0128 0.1207)
OKLCHoklch(62.65% 0.121 96.1)
XYZxyz(22.9523, 24.6729, 4.5305)
Luminance0.2467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E871A #1A319E
analogous
#9E451A #9E871A #739E1A
triadic
#9E871A #1A9E87 #871A9E
tetradic
#9E871A #1A9E45 #1A319E #9E1A73
square
#9E871A #1A9E45 #1A319E #9E1A73
split-complementary
#9E871A #1A739E #451A9E
monochromatic
#352D09 #695A11 #9E871A #D3B423 #E2C950

Accessibility & contrast

On white

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

On black

5.93
#9E871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E871A
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E871A#FFFFFF#000000##000000
##9E871A1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e871a;
/* rgb */ color: rgb(158, 135, 26);
/* oklch */ color: oklch(62.6% 0.121 96.1);
Tailwind
colors: {
  custom: {
    50: '#bfa962',
    500: '#9e871a',
    950: '#000000',
  },
}
SCSS
$custom: #9e871a;
$custom-light: #bfa962;
$custom-dark: #000000;
JSON
{
  "hex": "#9e871a",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 49.545,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.62649,
    "c": 0.12142,
    "h": 96.1
  },
  "luminance": 0.24672
}

Semantic roles & 50–950 ramp

primary
#9E871A
secondary
#4F64C5
accent
#59EE39
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9E871A

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

Preview Lab → · Contrast checker → · Palette generator →

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