#9E8E25#9E8E25

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

Color values

HEX#9E8E25
RGBrgb(158, 142, 37)
HSLhsl(52, 62%, 38%)
HSVhsv(52, 77%, 62%)
CMYKcmyk(0%, 10.1%, 76.6%, 38%)
CIE-LABlab(58.74, -5.66, 54.30)
CIE-LCHlch(58.74, 54.59, 95.95°)
OKLaboklab(64.24% -0.0215 0.1191)
OKLCHoklch(64.24% 0.121 100.2)
XYZxyz(24.1086, 26.7498, 5.6433)
Luminance0.2675 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E25 #25359E
analogous
#9E5125 #9E8E25 #719E25
triadic
#9E8E25 #259E8E #8E259E
tetradic
#9E8E25 #259E51 #25359E #9E2571
square
#9E8E25 #259E51 #25359E #9E2571
split-complementary
#9E8E25 #25719E #51259E
monochromatic
#3B350E #6C6119 #9E8E25 #CFBA31 #DACB63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8E25#FFFFFF#000000##000000
##9E8E251.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)
#9C8A10
Deuteranopia (green-blind)
#A1902C
Tritanopia (blue-blind)
#AB837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e25;
/* rgb */ color: rgb(158, 142, 37);
/* oklch */ color: oklch(64.2% 0.121 100.2);
Tailwind
colors: {
  custom: {
    50: '#beae68',
    500: '#9e8e25',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e25;
$custom-light: #beae68;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e25",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 37
  },
  "hsl": {
    "h": 52.066,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.64241,
    "c": 0.12099,
    "h": 100.2
  },
  "luminance": 0.26749
}

Semantic roles & 50–950 ramp

primary
#9E8E25
secondary
#5F6CC0
accent
#58E543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8E25

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

Preview Lab → · Contrast checker → · Palette generator →

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