#9E8A25#9E8A25

#9E8A25 is a light, moderate yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.118 H 97.5°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9E8A25
RGBrgb(158, 138, 37)
HSLhsl(50, 62%, 38%)
HSVhsv(50, 77%, 62%)
CMYKcmyk(0%, 12.7%, 76.6%, 38%)
CIE-LABlab(57.64, -3.47, 53.26)
CIE-LCHlch(57.64, 53.37, 93.73°)
OKLaboklab(63.37% -0.0153 0.1169)
OKLCHoklch(63.37% 0.118 97.5)
XYZxyz(23.5242, 25.5809, 5.4484)
Luminance0.2558 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A25 #25399E
analogous
#9E4E25 #9E8A25 #759E25
triadic
#9E8A25 #259E8A #8A259E
tetradic
#9E8A25 #259E4E #25399E #9E2575
square
#9E8A25 #259E4E #25399E #9E2575
split-complementary
#9E8A25 #25759E #4E259E
monochromatic
#3B330E #6C5F19 #9E8A25 #CFB531 #DAC763

Accessibility & contrast

On white

3.43
#9E8A25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#9E8A25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8A25
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8A25#FFFFFF#000000##000000
##9E8A251.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#988712
Deuteranopia (green-blind)
#9E8D2C
Tritanopia (blue-blind)
#AB7F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8a25;
/* rgb */ color: rgb(158, 138, 37);
/* oklch */ color: oklch(63.4% 0.118 97.5);
Tailwind
colors: {
  custom: {
    50: '#beab68',
    500: '#9e8a25',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a25;
$custom-light: #beab68;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a25",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 50.083,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.63365,
    "c": 0.11786,
    "h": 97.5
  },
  "luminance": 0.2558
}

Semantic roles & 50–950 ramp

primary
#9E8A25
secondary
#5F6FC0
accent
#5EE543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9E8A25

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

Preview Lab → · Contrast checker → · Palette generator →

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