#9E8E23#9E8E23

#9E8E23 is a light, vivid yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.122 H 100.3°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9E8E23
RGBrgb(158, 142, 35)
HSLhsl(52, 64%, 38%)
HSVhsv(52, 78%, 62%)
CMYKcmyk(0%, 10.1%, 77.8%, 38%)
CIE-LABlab(58.73, -5.74, 54.99)
CIE-LCHlch(58.73, 55.29, 95.96°)
OKLaboklab(64.23% -0.0219 0.1202)
OKLCHoklch(64.23% 0.122 100.3)
XYZxyz(24.0781, 26.7376, 5.4824)
Luminance0.2674 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E23 #23339E
analogous
#9E5023 #9E8E23 #709E23
triadic
#9E8E23 #239E8E #8E239E
tetradic
#9E8E23 #239E50 #23339E #9E2370
square
#9E8E23 #239E50 #23339E #9E2370
split-complementary
#9E8E23 #23709E #50239E
monochromatic
#3A340D #6C6118 #9E8E23 #D0BB2E #DCCC60

Accessibility & contrast

On white

3.31
#9E8E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#9E8E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8E23
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8E23#FFFFFF#000000##000000
##9E8E231.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A0B
Deuteranopia (green-blind)
#A1902B
Tritanopia (blue-blind)
#AB837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e23;
/* rgb */ color: rgb(158, 142, 35);
/* oklch */ color: oklch(64.2% 0.122 100.3);
Tailwind
colors: {
  custom: {
    50: '#beae67',
    500: '#9e8e23',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e23;
$custom-light: #beae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e23",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 35
  },
  "hsl": {
    "h": 52.195,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.64229,
    "c": 0.12213,
    "h": 100.3
  },
  "luminance": 0.26736
}

Semantic roles & 50–950 ramp

primary
#9E8E23
secondary
#5C69C1
accent
#57E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8E23

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

Preview Lab → · Contrast checker → · Palette generator →

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