#9E8F23#9E8F23

#9E8F23 is a light, vivid yellow. Relative luminance 0.270; OKLCH L 64.4% C 0.123 H 101.0°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9E8F23
RGBrgb(158, 143, 35)
HSLhsl(53, 64%, 38%)
HSVhsv(53, 78%, 62%)
CMYKcmyk(0%, 9.5%, 77.8%, 38%)
CIE-LABlab(59.01, -6.29, 55.25)
CIE-LCHlch(59.01, 55.60, 96.49°)
OKLaboklab(64.45% -0.0234 0.1207)
OKLCHoklch(64.45% 0.123 101)
XYZxyz(24.2276, 27.0365, 5.5322)
Luminance0.2703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8F23 #23329E
analogous
#9E5123 #9E8F23 #6F9E23
triadic
#9E8F23 #239E8F #8F239E
tetradic
#9E8F23 #239E51 #23329E #9E236F
square
#9E8F23 #239E51 #23329E #9E236F
split-complementary
#9E8F23 #236F9E #51239E
monochromatic
#3A340D #6C6218 #9E8F23 #D0BC2E #DCCD60

Accessibility & contrast

On white

3.28
#9E8F23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#9E8F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8F23
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8F23#FFFFFF#000000##000000
##9E8F231.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B0A
Deuteranopia (green-blind)
#A1912B
Tritanopia (blue-blind)
#AB847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9e8f23;
/* rgb */ color: rgb(158, 143, 35);
/* oklch */ color: oklch(64.4% 0.123 101.0);
Tailwind
colors: {
  custom: {
    50: '#beaf67',
    500: '#9e8f23',
    950: '#000000',
  },
}
SCSS
$custom: #9e8f23;
$custom-light: #beaf67;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8f23",
  "rgb": {
    "r": 158,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 52.683,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.64449,
    "c": 0.12295,
    "h": 101
  },
  "luminance": 0.27035
}

Semantic roles & 50–950 ramp

primary
#9E8F23
secondary
#5C68C1
accent
#55E741
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8F23

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

Preview Lab → · Contrast checker → · Palette generator →

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