#9E8B28#9E8B28

#9E8B28 is a light, moderate yellow. Relative luminance 0.259; OKLCH L 63.6% C 0.117 H 97.9°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9E8B28
RGBrgb(158, 139, 40)
HSLhsl(50, 60%, 39%)
HSVhsv(50, 75%, 62%)
CMYKcmyk(0%, 12%, 74.7%, 38%)
CIE-LABlab(57.93, -3.88, 52.41)
CIE-LCHlch(57.93, 52.56, 94.24°)
OKLaboklab(63.6% -0.0161 0.1157)
OKLCHoklch(63.6% 0.117 97.9)
XYZxyz(23.7174, 25.8887, 5.7548)
Luminance0.2589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8B28 #283B9E
analogous
#9E5028 #9E8B28 #769E28
triadic
#9E8B28 #289E8B #8B289E
tetradic
#9E8B28 #289E50 #283B9E #9E2876
square
#9E8B28 #289E50 #283B9E #9E2876
split-complementary
#9E8B28 #28769E #50289E
monochromatic
#3C350F #6D601C #9E8B28 #CCB437 #D9C768

Accessibility & contrast

On white

3.40
#9E8B28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#9E8B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8B28
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8B28#FFFFFF#000000##000000
##9E8B281.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#998817
Deuteranopia (green-blind)
#9E8E2E
Tritanopia (blue-blind)
#AB8078
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9e8b28;
/* rgb */ color: rgb(158, 139, 40);
/* oklch */ color: oklch(63.6% 0.117 97.9);
Tailwind
colors: {
  custom: {
    50: '#beac69',
    500: '#9e8b28',
    950: '#000000',
  },
}
SCSS
$custom: #9e8b28;
$custom-light: #beac69;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8b28",
  "rgb": {
    "r": 158,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 50.339,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63604,
    "c": 0.11678,
    "h": 97.9
  },
  "luminance": 0.25888
}

Semantic roles & 50–950 ramp

primary
#9E8B28
secondary
#6372BF
accent
#5EE345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8B28

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

Preview Lab → · Contrast checker → · Palette generator →

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