#9E8928#9E8928

#9E8928 is a light, moderate yellow. Relative luminance 0.253; OKLCH L 63.2% C 0.115 H 96.5°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9E8928
RGBrgb(158, 137, 40)
HSLhsl(49, 60%, 39%)
HSVhsv(49, 75%, 62%)
CMYKcmyk(0%, 13.3%, 74.7%, 38%)
CIE-LABlab(57.38, -2.79, 51.88)
CIE-LCHlch(57.38, 51.96, 93.08°)
OKLaboklab(63.17% -0.013 0.1145)
OKLCHoklch(63.17% 0.115 96.5)
XYZxyz(23.4304, 25.3149, 5.6592)
Luminance0.2531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8928 #283D9E
analogous
#9E4E28 #9E8928 #789E28
triadic
#9E8928 #289E89 #89289E
tetradic
#9E8928 #289E4E #283D9E #9E2878
square
#9E8928 #289E4E #283D9E #9E2878
split-complementary
#9E8928 #28789E #4E289E
monochromatic
#3C340F #6D5F1C #9E8928 #CCB237 #D9C568

Accessibility & contrast

On white

3.46
#9E8928 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#9E8928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8928
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8928#FFFFFF#000000##000000
##9E89281.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#978618
Deuteranopia (green-blind)
#9D8D2E
Tritanopia (blue-blind)
#AB7E76
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8928;
/* rgb */ color: rgb(158, 137, 40);
/* oklch */ color: oklch(63.2% 0.115 96.5);
Tailwind
colors: {
  custom: {
    50: '#beab69',
    500: '#9e8928',
    950: '#000000',
  },
}
SCSS
$custom: #9e8928;
$custom-light: #beab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8928",
  "rgb": {
    "r": 158,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 49.322,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.63168,
    "c": 0.11528,
    "h": 96.5
  },
  "luminance": 0.25314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E8928

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

Preview Lab → · Contrast checker → · Palette generator →

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