#9E8B1A#9E8B1A

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

Color values

HEX#9E8B1A
RGBrgb(158, 139, 26)
HSLhsl(51, 72%, 36%)
HSVhsv(51, 84%, 62%)
CMYKcmyk(0%, 12%, 83.5%, 38%)
CIE-LABlab(57.86, -4.43, 57.08)
CIE-LCHlch(57.86, 57.25, 94.44°)
OKLaboklab(63.52% -0.019 0.1228)
OKLCHoklch(63.52% 0.124 98.8)
XYZxyz(23.5209, 25.8102, 4.7200)
Luminance0.2581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B1A #1A2D9E
analogous
#9E491A #9E8B1A #6F9E1A
triadic
#9E8B1A #1A9E8B #8B1A9E
tetradic
#9E8B1A #1A9E49 #1A2D9E #9E1A6F
square
#9E8B1A #1A9E49 #1A2D9E #9E1A6F
split-complementary
#9E8B1A #1A6F9E #491A9E
monochromatic
#352F09 #695D11 #9E8B1A #D3B923 #E2CD50

Accessibility & contrast

On white

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

On black

6.16
#9E8B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8B1A
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8B1A#FFFFFF#000000##000000
##9E8B1A1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e8b1a;
/* rgb */ color: rgb(158, 139, 26);
/* oklch */ color: oklch(63.5% 0.124 98.8);
Tailwind
colors: {
  custom: {
    50: '#bfac63',
    500: '#9e8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b1a;
$custom-light: #bfac63;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b1a",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 51.364,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.63521,
    "c": 0.12426,
    "h": 98.8
  },
  "luminance": 0.25809
}

Semantic roles & 50–950 ramp

primary
#9E8B1A
secondary
#4F60C5
accent
#53EE39
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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