#9E398E#9E398E

#9E398E is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.7% C 0.167 H 334.5°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9E398E
RGBrgb(158, 57, 142)
HSLhsl(310, 47%, 42%)
HSVhsv(310, 64%, 62%)
CMYKcmyk(0%, 63.9%, 10.1%, 38%)
CIE-LABlab(41.45, 51.95, -26.37)
CIE-LCHlch(41.45, 58.25, 333.09°)
OKLaboklab(51.71% 0.1507 -0.0719)
OKLCHoklch(51.71% 0.167 334.5)
XYZxyz(20.4463, 12.1500, 26.8542)
Luminance0.1215 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E398E #399E49
analogous
#7C399E #9E398E #9E395C
triadic
#9E398E #8E9E39 #398E9E
tetradic
#9E398E #9E7C39 #399E49 #395C9E
square
#9E398E #9E7C39 #399E49 #395C9E
split-complementary
#9E398E #5C9E39 #399E7C
monochromatic
#44193D #712966 #9E398E #C153B0 #D180C4

Accessibility & contrast

On white

6.12
#9E398E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9E398E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E398E
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E398E#FFFFFF#000000##FFFFFF
##9E398E1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385891
Deuteranopia (green-blind)
#59678B
Tritanopia (blue-blind)
#A5405E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9e398e;
/* rgb */ color: rgb(158, 57, 142);
/* oklch */ color: oklch(51.7% 0.167 334.5);
Tailwind
colors: {
  custom: {
    50: '#be76af',
    500: '#9e398e',
    950: '#000000',
  },
}
SCSS
$custom: #9e398e;
$custom-light: #be76af;
$custom-dark: #000000;
JSON
{
  "hex": "#9e398e",
  "rgb": {
    "r": 158,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 309.505,
    "s": 46.977,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51706,
    "c": 0.16693,
    "h": 334.5
  },
  "luminance": 0.12148
}

Semantic roles & 50–950 ramp

primary
#9E398E
secondary
#78BB83
accent
#D76651
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9E398E

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

Preview Lab → · Contrast checker → · Palette generator →

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