#9E8D27#9E8D27

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

Color values

HEX#9E8D27
RGBrgb(158, 141, 39)
HSLhsl(51, 60%, 39%)
HSVhsv(51, 75%, 62%)
CMYKcmyk(0%, 10.8%, 75.3%, 38%)
CIE-LABlab(58.48, -5.02, 53.31)
CIE-LCHlch(58.48, 53.55, 95.38°)
OKLaboklab(64.04% -0.0195 0.1174)
OKLCHoklch(64.04% 0.119 99.4)
XYZxyz(23.9928, 26.4665, 5.7638)
Luminance0.2646 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8D27 #27389E
analogous
#9E5127 #9E8D27 #739E27
triadic
#9E8D27 #279E8D #8D279E
tetradic
#9E8D27 #279E51 #27389E #9E2773
square
#9E8D27 #279E51 #27389E #9E2773
split-complementary
#9E8D27 #27739E #51279E
monochromatic
#3C350F #6D611B #9E8D27 #CDB735 #D9C966

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8D27#FFFFFF#000000##000000
##9E8D271.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)
#9B8914
Deuteranopia (green-blind)
#A08F2E
Tritanopia (blue-blind)
#AB8279
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8d27;
/* rgb */ color: rgb(158, 141, 39);
/* oklch */ color: oklch(64.0% 0.119 99.4);
Tailwind
colors: {
  custom: {
    50: '#beae69',
    500: '#9e8d27',
    950: '#000000',
  },
}
SCSS
$custom: #9e8d27;
$custom-light: #beae69;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8d27",
  "rgb": {
    "r": 158,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 51.429,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.64035,
    "c": 0.11898,
    "h": 99.4
  },
  "luminance": 0.26465
}

Semantic roles & 50–950 ramp

primary
#9E8D27
secondary
#626FBF
accent
#5BE444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8D27

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

Preview Lab → · Contrast checker → · Palette generator →

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