#9E9138#9E9138

#9E9138 is a light, moderate yellow. Relative luminance 0.278; OKLCH L 65.1% C 0.110 H 101.0°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#9E9138
RGBrgb(158, 145, 56)
HSLhsl(52, 48%, 42%)
HSVhsv(52, 65%, 62%)
CMYKcmyk(0%, 8.2%, 64.6%, 38%)
CIE-LABlab(59.71, -6.25, 47.50)
CIE-LCHlch(59.71, 47.91, 97.49°)
OKLaboklab(65.06% -0.021 0.1081)
OKLCHoklch(65.06% 0.11 101)
XYZxyz(24.9408, 27.8065, 7.7941)
Luminance0.2781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E9138 #38459E
analogous
#9E5E38 #9E9138 #789E38
triadic
#9E9138 #389E91 #91389E
tetradic
#9E9138 #389E5E #38459E #9E3878
square
#9E9138 #389E5E #38459E #9E3878
split-complementary
#9E9138 #38789E #5E389E
monochromatic
#443E18 #716828 #9E9138 #C2B352 #D2C77F

Accessibility & contrast

On white

3.20
#9E9138 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#9E9138 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E9138
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E9138#FFFFFF#000000##000000
##9E91381.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8D2D
Deuteranopia (green-blind)
#A2923D
Tritanopia (blue-blind)
#AA877E
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9e9138;
/* rgb */ color: rgb(158, 145, 56);
/* oklch */ color: oklch(65.1% 0.110 101.0);
Tailwind
colors: {
  custom: {
    50: '#bdb173',
    500: '#9e9138',
    950: '#000000',
  },
}
SCSS
$custom: #9e9138;
$custom-light: #bdb173;
$custom-dark: #000000;
JSON
{
  "hex": "#9e9138",
  "rgb": {
    "r": 158,
    "g": 145,
    "b": 56
  },
  "hsl": {
    "h": 52.353,
    "s": 47.664,
    "l": 41.961
  },
  "oklch": {
    "l": 0.65057,
    "c": 0.11012,
    "h": 101
  },
  "luminance": 0.27805
}

Semantic roles & 50–950 ramp

primary
#9E9138
secondary
#7780BB
accent
#62D751
background
#FCFAF7
surface
#F8F4ED
border
#D1CEC8
text
#121008
muted
#817F7B

Preview Lab

Preview with #9E9138

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

Preview Lab → · Contrast checker → · Palette generator →

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