#9E8E27#9E8E27

#9E8E27 is a light, moderate yellow. Relative luminance 0.268; OKLCH L 64.3% C 0.120 H 100.1°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9E8E27
RGBrgb(158, 142, 39)
HSLhsl(52, 60%, 39%)
HSVhsv(52, 75%, 62%)
CMYKcmyk(0%, 10.1%, 75.3%, 38%)
CIE-LABlab(58.75, -5.57, 53.58)
CIE-LCHlch(58.75, 53.87, 95.93°)
OKLaboklab(64.26% -0.021 0.1179)
OKLCHoklch(64.26% 0.12 100.1)
XYZxyz(24.1409, 26.7627, 5.8132)
Luminance0.2676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8E27 #27379E
analogous
#9E5227 #9E8E27 #729E27
triadic
#9E8E27 #279E8E #8E279E
tetradic
#9E8E27 #279E52 #27379E #9E2772
square
#9E8E27 #279E52 #27379E #9E2772
split-complementary
#9E8E27 #27729E #52279E
monochromatic
#3C360F #6D621B #9E8E27 #CDB935 #D9CA66

Accessibility & contrast

On white

3.31
#9E8E27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#9E8E27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8E27
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8E27#FFFFFF#000000##000000
##9E8E271.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A14
Deuteranopia (green-blind)
#A0902E
Tritanopia (blue-blind)
#AB837A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e8e27;
/* rgb */ color: rgb(158, 142, 39);
/* oklch */ color: oklch(64.3% 0.120 100.1);
Tailwind
colors: {
  custom: {
    50: '#beae69',
    500: '#9e8e27',
    950: '#000000',
  },
}
SCSS
$custom: #9e8e27;
$custom-light: #beae69;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8e27",
  "rgb": {
    "r": 158,
    "g": 142,
    "b": 39
  },
  "hsl": {
    "h": 51.933,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.64255,
    "c": 0.1198,
    "h": 100.1
  },
  "luminance": 0.26762
}

Semantic roles & 50–950 ramp

primary
#9E8E27
secondary
#626EBF
accent
#5AE444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8E27

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

Preview Lab → · Contrast checker → · Palette generator →

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