#9E871F#9E871F

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

Color values

HEX#9E871F
RGBrgb(158, 135, 31)
HSLhsl(49, 67%, 37%)
HSVhsv(49, 80%, 62%)
CMYKcmyk(0%, 14.6%, 80.4%, 38%)
CIE-LABlab(56.78, -2.07, 54.58)
CIE-LCHlch(56.78, 54.62, 92.17°)
OKLaboklab(62.68% -0.0119 0.1184)
OKLCHoklch(62.68% 0.119 95.7)
XYZxyz(23.0131, 24.6973, 4.8510)
Luminance0.2470 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E871F #1F369E
analogous
#9E481F #9E871F #769E1F
triadic
#9E871F #1F9E87 #871F9E
tetradic
#9E871F #1F9E48 #1F369E #9E1F76
square
#9E871F #1F9E48 #1F369E #9E1F76
split-complementary
#9E871F #1F769E #481F9E
monochromatic
#38300B #6B5B15 #9E871F #D1B329 #DEC659

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E871F#FFFFFF#000000##000000
##9E871F1.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)
#968405
Deuteranopia (green-blind)
#9C8B26
Tritanopia (blue-blind)
#AB7C74
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9e871f;
/* rgb */ color: rgb(158, 135, 31);
/* oklch */ color: oklch(62.7% 0.119 95.7);
Tailwind
colors: {
  custom: {
    50: '#bfa964',
    500: '#9e871f',
    950: '#000000',
  },
}
SCSS
$custom: #9e871f;
$custom-light: #bfa964;
$custom-dark: #000000;
JSON
{
  "hex": "#9e871f",
  "rgb": {
    "r": 158,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 49.134,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.62675,
    "c": 0.11903,
    "h": 95.7
  },
  "luminance": 0.24696
}

Semantic roles & 50–950 ramp

primary
#9E871F
secondary
#566AC2
accent
#5DEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9E871F

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

Preview Lab → · Contrast checker → · Palette generator →

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