#9E8B24#9E8B24

#9E8B24 is a light, moderate yellow. Relative luminance 0.259; OKLCH L 63.6% C 0.119 H 98.2°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9E8B24
RGBrgb(158, 139, 36)
HSLhsl(51, 63%, 38%)
HSVhsv(51, 77%, 62%)
CMYKcmyk(0%, 12%, 77.2%, 38%)
CIE-LABlab(57.91, -4.07, 53.88)
CIE-LCHlch(57.91, 54.03, 94.31°)
OKLaboklab(63.58% -0.0171 0.118)
OKLCHoklch(63.58% 0.119 98.2)
XYZxyz(23.6528, 25.8629, 5.4149)
Luminance0.2586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B24 #24379E
analogous
#9E4E24 #9E8B24 #749E24
triadic
#9E8B24 #249E8B #8B249E
tetradic
#9E8B24 #249E4E #24379E #9E2474
square
#9E8B24 #249E4E #24379E #9E2474
split-complementary
#9E8B24 #24749E #4E249E
monochromatic
#3A330D #6C5F19 #9E8B24 #D0B72F #DBC861

Accessibility & contrast

On white

3.40
#9E8B24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8B24#FFFFFF#000000##000000
##9E8B241.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#99870F
Deuteranopia (green-blind)
#9E8E2B
Tritanopia (blue-blind)
#AB8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8b24;
/* rgb */ color: rgb(158, 139, 36);
/* oklch */ color: oklch(63.6% 0.119 98.2);
Tailwind
colors: {
  custom: {
    50: '#beac67',
    500: '#9e8b24',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b24;
$custom-light: #beac67;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b24",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 36
  },
  "hsl": {
    "h": 50.656,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.63577,
    "c": 0.1192,
    "h": 98.2
  },
  "luminance": 0.25862
}

Semantic roles & 50–950 ramp

primary
#9E8B24
secondary
#5E6DC0
accent
#5BE642
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8B24

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

Preview Lab → · Contrast checker → · Palette generator →

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