#9E8A23#9E8A23

#9E8A23 is a light, moderate yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.119 H 97.6°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9E8A23
RGBrgb(158, 138, 35)
HSLhsl(50, 64%, 38%)
HSVhsv(50, 78%, 62%)
CMYKcmyk(0%, 12.7%, 77.8%, 38%)
CIE-LABlab(57.63, -3.56, 53.97)
CIE-LCHlch(57.63, 54.09, 93.77°)
OKLaboklab(63.35% -0.0157 0.118)
OKLCHoklch(63.35% 0.119 97.6)
XYZxyz(23.4936, 25.5686, 5.2876)
Luminance0.2557 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A23 #23379E
analogous
#9E4C23 #9E8A23 #749E23
triadic
#9E8A23 #239E8A #8A239E
tetradic
#9E8A23 #239E4C #23379E #9E2374
square
#9E8A23 #239E4C #23379E #9E2374
split-complementary
#9E8A23 #23749E #4C239E
monochromatic
#3A320D #6C5E18 #9E8A23 #D0B62E #DCC860

Accessibility & contrast

On white

3.44
#9E8A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9E8A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8A23
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8A23#FFFFFF#000000##000000
##9E8A231.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#98870D
Deuteranopia (green-blind)
#9E8D2A
Tritanopia (blue-blind)
#AB7F76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8a23;
/* rgb */ color: rgb(158, 138, 35);
/* oklch */ color: oklch(63.4% 0.119 97.6);
Tailwind
colors: {
  custom: {
    50: '#beab67',
    500: '#9e8a23',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a23;
$custom-light: #beab67;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a23",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 50.244,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63352,
    "c": 0.11901,
    "h": 97.6
  },
  "luminance": 0.25567
}

Semantic roles & 50–950 ramp

primary
#9E8A23
secondary
#5C6DC1
accent
#5CE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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