#9E8B1E#9E8B1E

#9E8B1E is a light, vivid yellow. Relative luminance 0.258; OKLCH L 63.5% C 0.122 H 98.6°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9E8B1E
RGBrgb(158, 139, 30)
HSLhsl(51, 68%, 37%)
HSVhsv(51, 81%, 62%)
CMYKcmyk(0%, 12%, 81%, 38%)
CIE-LABlab(57.87, -4.30, 55.88)
CIE-LCHlch(57.87, 56.05, 94.40°)
OKLaboklab(63.54% -0.0183 0.121)
OKLCHoklch(63.54% 0.122 98.6)
XYZxyz(23.5687, 25.8293, 4.9722)
Luminance0.2583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B1E #1E319E
analogous
#9E4B1E #9E8B1E #719E1E
triadic
#9E8B1E #1E9E8B #8B1E9E
tetradic
#9E8B1E #1E9E4B #1E319E #9E1E71
square
#9E8B1E #1E9E4B #1E319E #9E1E71
split-complementary
#9E8B1E #1E719E #4B1E9E
monochromatic
#37310A #6B5E14 #9E8B1E #D1B828 #DFCB57

Accessibility & contrast

On white

3.41
#9E8B1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#9E8B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8B1E
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8B1E#FFFFFF#000000##000000
##9E8B1E1.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9F8E26
Tritanopia (blue-blind)
#AB8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8b1e;
/* rgb */ color: rgb(158, 139, 30);
/* oklch */ color: oklch(63.5% 0.122 98.6);
Tailwind
colors: {
  custom: {
    50: '#bfac64',
    500: '#9e8b1e',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b1e;
$custom-light: #bfac64;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b1e",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 51.094,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.63541,
    "c": 0.12241,
    "h": 98.6
  },
  "luminance": 0.25828
}

Semantic roles & 50–950 ramp

primary
#9E8B1E
secondary
#5565C3
accent
#57EB3D
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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