#9E8E1B#9E8E1B

#9E8E1B is a light, vivid yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.126 H 100.7°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9E8E1B
RGBrgb(158, 142, 27)
HSLhsl(53, 71%, 36%)
HSVhsv(53, 83%, 62%)
CMYKcmyk(0%, 10.1%, 82.9%, 38%)
CIE-LABlab(58.69, -6.04, 57.51)
CIE-LCHlch(58.69, 57.83, 95.99°)
OKLaboklab(64.19% -0.0234 0.1239)
OKLCHoklch(64.19% 0.126 100.7)
XYZxyz(23.9726, 26.6954, 4.9267)
Luminance0.2669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E1B #1B2B9E
analogous
#9E4D1B #9E8E1B #6D9E1B
triadic
#9E8E1B #1B9E8E #8E1B9E
tetradic
#9E8E1B #1B9E4D #1B2B9E #9E1B6D
square
#9E8E1B #1B9E4D #1B2B9E #9E1B6D
split-complementary
#9E8E1B #1B6D9E #4D1B9E
monochromatic
#353009 #6A5F12 #9E8E1B #D2BD24 #E1D052

Accessibility & contrast

On white

3.31
#9E8E1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#9E8E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8E1B
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8E1B#FFFFFF#000000##000000
##9E8E1B1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A00
Deuteranopia (green-blind)
#A19025
Tritanopia (blue-blind)
#AB8379
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e1b;
/* rgb */ color: rgb(158, 142, 27);
/* oklch */ color: oklch(64.2% 0.126 100.7);
Tailwind
colors: {
  custom: {
    50: '#bfae64',
    500: '#9e8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e1b;
$custom-light: #bfae64;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e1b",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 52.672,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64185,
    "c": 0.12613,
    "h": 100.7
  },
  "luminance": 0.26694
}

Semantic roles & 50–950 ramp

primary
#9E8E1B
secondary
#515FC4
accent
#50EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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