#9E8B23#9E8B23

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

Color values

HEX#9E8B23
RGBrgb(158, 139, 35)
HSLhsl(51, 64%, 38%)
HSVhsv(51, 78%, 62%)
CMYKcmyk(0%, 12%, 77.8%, 38%)
CIE-LABlab(57.90, -4.11, 54.23)
CIE-LCHlch(57.90, 54.38, 94.33°)
OKLaboklab(63.57% -0.0173 0.1185)
OKLCHoklch(63.57% 0.12 98.3)
XYZxyz(23.6377, 25.8569, 5.3356)
Luminance0.2586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B23 #23369E
analogous
#9E4E23 #9E8B23 #739E23
triadic
#9E8B23 #239E8B #8B239E
tetradic
#9E8B23 #239E4E #23369E #9E2373
square
#9E8B23 #239E4E #23369E #9E2373
split-complementary
#9E8B23 #23739E #4E239E
monochromatic
#3A330D #6C5F18 #9E8B23 #D0B72E #DCC960

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8B23#FFFFFF#000000##000000
##9E8B231.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)
#99870D
Deuteranopia (green-blind)
#9E8E2A
Tritanopia (blue-blind)
#AB8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8b23;
/* rgb */ color: rgb(158, 139, 35);
/* oklch */ color: oklch(63.6% 0.120 98.3);
Tailwind
colors: {
  custom: {
    50: '#beac67',
    500: '#9e8b23',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b23;
$custom-light: #beac67;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b23",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 35
  },
  "hsl": {
    "h": 50.732,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.63571,
    "c": 0.11977,
    "h": 98.3
  },
  "luminance": 0.25856
}

Semantic roles & 50–950 ramp

primary
#9E8B23
secondary
#5C6CC1
accent
#5BE741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8B23

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

Preview Lab → · Contrast checker → · Palette generator →

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