#9E8D23#9E8D23

#9E8D23 is a light, vivid yellow. Relative luminance 0.264; OKLCH L 64.0% C 0.121 H 99.7°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9E8D23
RGBrgb(158, 141, 35)
HSLhsl(52, 64%, 38%)
HSVhsv(52, 78%, 62%)
CMYKcmyk(0%, 10.8%, 77.8%, 38%)
CIE-LABlab(58.45, -5.20, 54.74)
CIE-LCHlch(58.45, 54.98, 95.43°)
OKLaboklab(64.01% -0.0204 0.1196)
OKLCHoklch(64.01% 0.121 99.7)
XYZxyz(23.9300, 26.4414, 5.4330)
Luminance0.2644 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D23 #23349E
analogous
#9E4F23 #9E8D23 #729E23
triadic
#9E8D23 #239E8D #8D239E
tetradic
#9E8D23 #239E4F #23349E #9E2372
square
#9E8D23 #239E4F #23349E #9E2372
split-complementary
#9E8D23 #23729E #4F239E
monochromatic
#3A340D #6C6018 #9E8D23 #D0BA2E #DCCB60

Accessibility & contrast

On white

3.34
#9E8D23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#9E8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8D23
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8D23#FFFFFF#000000##000000
##9E8D231.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B890C
Deuteranopia (green-blind)
#A08F2B
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8d23;
/* rgb */ color: rgb(158, 141, 35);
/* oklch */ color: oklch(64.0% 0.121 99.7);
Tailwind
colors: {
  custom: {
    50: '#beae67',
    500: '#9e8d23',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d23;
$custom-light: #beae67;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d23",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 51.707,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.64009,
    "c": 0.12132,
    "h": 99.7
  },
  "luminance": 0.2644
}

Semantic roles & 50–950 ramp

primary
#9E8D23
secondary
#5C6AC1
accent
#58E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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