#9E891B#9E891B

#9E891B is a light, vivid yellow. Relative luminance 0.252; OKLCH L 63.1% C 0.122 H 97.4°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9E891B
RGBrgb(158, 137, 27)
HSLhsl(50, 71%, 36%)
HSVhsv(50, 83%, 62%)
CMYKcmyk(0%, 13.3%, 82.9%, 38%)
CIE-LABlab(57.31, -3.31, 56.32)
CIE-LCHlch(57.31, 56.41, 93.36°)
OKLaboklab(63.09% -0.0158 0.1213)
OKLCHoklch(63.09% 0.122 97.4)
XYZxyz(23.2453, 25.2408, 4.6843)
Luminance0.2524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E891B #1B309E
analogous
#9E481B #9E891B #729E1B
triadic
#9E891B #1B9E89 #891B9E
tetradic
#9E891B #1B9E48 #1B309E #9E1B72
square
#9E891B #1B9E48 #1B309E #9E1B72
split-complementary
#9E891B #1B729E #481B9E
monochromatic
#352E09 #6A5C12 #9E891B #D2B624 #E1CA52

Accessibility & contrast

On white

3.47
#9E891B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#9E891B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E891B
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E891B#FFFFFF#000000##000000
##9E891B1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#9D8D24
Tritanopia (blue-blind)
#AB7E75
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e891b;
/* rgb */ color: rgb(158, 137, 27);
/* oklch */ color: oklch(63.1% 0.122 97.4);
Tailwind
colors: {
  custom: {
    50: '#bfab63',
    500: '#9e891b',
    950: '#000000',
  },
}
SCSS
$custom: #9e891b;
$custom-light: #bfab63;
$custom-dark: #000000;
JSON
{
  "hex": "#9e891b",
  "rgb": {
    "r": 158,
    "g": 137,
    "b": 27
  },
  "hsl": {
    "h": 50.382,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63089,
    "c": 0.12236,
    "h": 97.4
  },
  "luminance": 0.2524
}

Semantic roles & 50–950 ramp

primary
#9E891B
secondary
#5163C4
accent
#57EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E891B

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

Preview Lab → · Contrast checker → · Palette generator →

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