#9E8F27#9E8F27

#9E8F27 is a light, vivid yellow. Relative luminance 0.271; OKLCH L 64.5% C 0.121 H 100.8°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9E8F27
RGBrgb(158, 143, 39)
HSLhsl(52, 60%, 39%)
HSVhsv(52, 75%, 62%)
CMYKcmyk(0%, 9.5%, 75.3%, 38%)
CIE-LABlab(59.03, -6.11, 53.84)
CIE-LCHlch(59.03, 54.19, 96.48°)
OKLaboklab(64.48% -0.0225 0.1185)
OKLCHoklch(64.48% 0.121 100.8)
XYZxyz(24.2904, 27.0616, 5.8630)
Luminance0.2706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E8F27 #27369E
analogous
#9E5327 #9E8F27 #719E27
triadic
#9E8F27 #279E8F #8F279E
tetradic
#9E8F27 #279E53 #27369E #9E2771
square
#9E8F27 #279E53 #27369E #9E2771
split-complementary
#9E8F27 #27719E #53279E
monochromatic
#3C360F #6D631B #9E8F27 #CDBA35 #D9CB66

Accessibility & contrast

On white

3.28
#9E8F27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#9E8F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E8F27
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E8F27#FFFFFF#000000##000000
##9E8F271.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B14
Deuteranopia (green-blind)
#A1912E
Tritanopia (blue-blind)
#AA847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9e8f27;
/* rgb */ color: rgb(158, 143, 39);
/* oklch */ color: oklch(64.5% 0.121 100.8);
Tailwind
colors: {
  custom: {
    50: '#beaf69',
    500: '#9e8f27',
    950: '#000000',
  },
}
SCSS
$custom: #9e8f27;
$custom-light: #beaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#9e8f27",
  "rgb": {
    "r": 158,
    "g": 143,
    "b": 39
  },
  "hsl": {
    "h": 52.437,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.64475,
    "c": 0.12063,
    "h": 100.8
  },
  "luminance": 0.27061
}

Semantic roles & 50–950 ramp

primary
#9E8F27
secondary
#626DBF
accent
#58E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9E8F27

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

Preview Lab → · Contrast checker → · Palette generator →

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