#9E8A28#9E8A28

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

Color values

HEX#9E8A28
RGBrgb(158, 138, 40)
HSLhsl(50, 60%, 39%)
HSVhsv(50, 75%, 62%)
CMYKcmyk(0%, 12.7%, 74.7%, 38%)
CIE-LABlab(57.66, -3.34, 52.15)
CIE-LCHlch(57.66, 52.25, 93.66°)
OKLaboklab(63.39% -0.0146 0.1151)
OKLCHoklch(63.39% 0.116 97.2)
XYZxyz(23.5732, 25.6005, 5.7068)
Luminance0.2560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A28 #283C9E
analogous
#9E4F28 #9E8A28 #779E28
triadic
#9E8A28 #289E8A #8A289E
tetradic
#9E8A28 #289E4F #283C9E #9E2877
square
#9E8A28 #289E4F #283C9E #9E2877
split-complementary
#9E8A28 #28779E #4F289E
monochromatic
#3C350F #6D5F1C #9E8A28 #CCB337 #D9C668

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8A28#FFFFFF#000000##000000
##9E8A281.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)
#988717
Deuteranopia (green-blind)
#9D8D2E
Tritanopia (blue-blind)
#AB7F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8a28;
/* rgb */ color: rgb(158, 138, 40);
/* oklch */ color: oklch(63.4% 0.116 97.2);
Tailwind
colors: {
  custom: {
    50: '#beab69',
    500: '#9e8a28',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a28;
$custom-light: #beab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a28",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 49.831,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63386,
    "c": 0.11602,
    "h": 97.2
  },
  "luminance": 0.25599
}

Semantic roles & 50–950 ramp

primary
#9E8A28
secondary
#6373BF
accent
#60E345
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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