#9E8D25#9E8D25

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

Color values

HEX#9E8D25
RGBrgb(158, 141, 37)
HSLhsl(52, 62%, 38%)
HSVhsv(52, 77%, 62%)
CMYKcmyk(0%, 10.8%, 76.6%, 38%)
CIE-LABlab(58.47, -5.11, 54.04)
CIE-LCHlch(58.47, 54.28, 95.41°)
OKLaboklab(64.02% -0.0199 0.1185)
OKLCHoklch(64.02% 0.12 99.5)
XYZxyz(23.9605, 26.4536, 5.5939)
Luminance0.2645 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D25 #25369E
analogous
#9E5025 #9E8D25 #729E25
triadic
#9E8D25 #259E8D #8D259E
tetradic
#9E8D25 #259E50 #25369E #9E2572
square
#9E8D25 #259E50 #25369E #9E2572
split-complementary
#9E8D25 #25729E #50259E
monochromatic
#3B340E #6C6119 #9E8D25 #CFB931 #DACA63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8D25#FFFFFF#000000##000000
##9E8D251.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)
#9B8910
Deuteranopia (green-blind)
#A08F2C
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8d25;
/* rgb */ color: rgb(158, 141, 37);
/* oklch */ color: oklch(64.0% 0.120 99.5);
Tailwind
colors: {
  custom: {
    50: '#beae68',
    500: '#9e8d25',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d25;
$custom-light: #beae68;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d25",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 37
  },
  "hsl": {
    "h": 51.57,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.64022,
    "c": 0.12018,
    "h": 99.5
  },
  "luminance": 0.26452
}

Semantic roles & 50–950 ramp

primary
#9E8D25
secondary
#5F6DC0
accent
#59E543
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8D25

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

Preview Lab → · Contrast checker → · Palette generator →

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