#9E8A27#9E8A27

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

Color values

HEX#9E8A27
RGBrgb(158, 138, 39)
HSLhsl(50, 60%, 39%)
HSVhsv(50, 75%, 62%)
CMYKcmyk(0%, 12.7%, 75.3%, 38%)
CIE-LABlab(57.65, -3.38, 52.52)
CIE-LCHlch(57.65, 52.63, 93.69°)
OKLaboklab(63.38% -0.0148 0.1157)
OKLCHoklch(63.38% 0.117 97.3)
XYZxyz(23.5564, 25.5938, 5.6184)
Luminance0.2559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8A27 #273B9E
analogous
#9E4E27 #9E8A27 #769E27
triadic
#9E8A27 #279E8A #8A279E
tetradic
#9E8A27 #279E4E #273B9E #9E2776
square
#9E8A27 #279E4E #273B9E #9E2776
split-complementary
#9E8A27 #27769E #4E279E
monochromatic
#3C340F #6D5F1B #9E8A27 #CDB435 #D9C666

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E8A27#FFFFFF#000000##000000
##9E8A271.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)
#988716
Deuteranopia (green-blind)
#9E8D2D
Tritanopia (blue-blind)
#AB7F77
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9e8a27;
/* rgb */ color: rgb(158, 138, 39);
/* oklch */ color: oklch(63.4% 0.117 97.3);
Tailwind
colors: {
  custom: {
    50: '#beab69',
    500: '#9e8a27',
    950: '#000000',
  },
}
SCSS
$custom: #9e8a27;
$custom-light: #beab69;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8a27",
  "rgb": {
    "r": 158,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 49.916,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.63379,
    "c": 0.11665,
    "h": 97.3
  },
  "luminance": 0.25593
}

Semantic roles & 50–950 ramp

primary
#9E8A27
secondary
#6271BF
accent
#5FE444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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