#9E2F96#9E2F96

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

Color values

HEX#9E2F96
RGBrgb(158, 47, 150)
HSLhsl(304, 54%, 40%)
HSVhsv(304, 70%, 62%)
CMYKcmyk(0%, 70.3%, 5.1%, 38%)
CIE-LABlab(40.42, 57.26, -32.84)
CIE-LCHlch(40.42, 66.01, 330.16°)
OKLaboklab(51.09% 0.1631 -0.0904)
OKLCHoklch(51.09% 0.186 331)
XYZxyz(20.6220, 11.5057, 29.9829)
Luminance0.1150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F96 #2F9E37
analogous
#6E2F9E #9E2F96 #9E2F5F
triadic
#9E2F96 #969E2F #2F969E
tetradic
#9E2F96 #9E6E2F #2F9E37 #2F5F9E
square
#9E2F96 #9E6E2F #2F9E37 #2F5F9E
split-complementary
#9E2F96 #5F9E2F #2F9E6E
monochromatic
#40133C #6F2169 #9E2F96 #C743BE #D572CE

Accessibility & contrast

On white

6.36
#9E2F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9E2F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F96
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F96#FFFFFF#000000##FFFFFF
##9E2F961.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265599
Deuteranopia (green-blind)
#506593
Tritanopia (blue-blind)
#A43C5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e2f96;
/* rgb */ color: rgb(158, 47, 150);
/* oklch */ color: oklch(51.1% 0.186 331.0);
Tailwind
colors: {
  custom: {
    50: '#be72b5',
    500: '#9e2f96',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f96;
$custom-light: #be72b5;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f96",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 304.324,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51086,
    "c": 0.18649,
    "h": 331
  },
  "luminance": 0.11504
}

Semantic roles & 50–950 ramp

primary
#9E2F96
secondary
#6CBD72
accent
#DE554A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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