#9E2F97#9E2F97

#9E2F97 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.1% C 0.187 H 330.6°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9E2F97
RGBrgb(158, 47, 151)
HSLhsl(304, 54%, 40%)
HSVhsv(304, 70%, 62%)
CMYKcmyk(0%, 70.3%, 4.4%, 38%)
CIE-LABlab(40.47, 57.42, -33.36)
CIE-LCHlch(40.47, 66.41, 329.84°)
OKLaboklab(51.14% 0.1632 -0.0919)
OKLCHoklch(51.14% 0.187 330.6)
XYZxyz(20.7029, 11.5381, 30.4088)
Luminance0.1154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F97 #2F9E36
analogous
#6E2F9E #9E2F97 #9E2F5F
triadic
#9E2F97 #979E2F #2F979E
tetradic
#9E2F97 #9E6E2F #2F9E36 #2F5F9E
square
#9E2F97 #9E6E2F #2F9E36 #2F5F9E
split-complementary
#9E2F97 #5F9E2F #2F9E6E
monochromatic
#40133D #6F216A #9E2F97 #C743BF #D572CF

Accessibility & contrast

On white

6.35
#9E2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9E2F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F97
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F97#FFFFFF#000000##FFFFFF
##9E2F971.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569A
Deuteranopia (green-blind)
#506594
Tritanopia (blue-blind)
#A43C5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e2f97;
/* rgb */ color: rgb(158, 47, 151);
/* oklch */ color: oklch(51.1% 0.187 330.6);
Tailwind
colors: {
  custom: {
    50: '#be72b6',
    500: '#9e2f97',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f97;
$custom-light: #be72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f97",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 303.784,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51141,
    "c": 0.18727,
    "h": 330.6
  },
  "luminance": 0.11536
}

Semantic roles & 50–950 ramp

primary
#9E2F97
secondary
#6CBD71
accent
#DE544A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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