#9E2F9E#9E2F9E

#9E2F9E is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.5% C 0.193 H 327.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9E2F9E
RGBrgb(158, 47, 158)
HSLhsl(300, 54%, 40%)
HSVhsv(300, 70%, 62%)
CMYKcmyk(0%, 70.3%, 0%, 38%)
CIE-LABlab(40.85, 58.60, -36.99)
CIE-LCHlch(40.85, 69.29, 327.74°)
OKLaboklab(51.54% 0.1634 -0.1024)
OKLCHoklch(51.54% 0.193 327.9)
XYZxyz(21.2883, 11.7723, 33.4921)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2F9E #2F9E2F
analogous
#662F9E #9E2F9E #9E2F66
triadic
#9E2F9E #9E9E2F #2F9E9E
tetradic
#9E2F9E #9E662F #2F9E2F #2F669E
square
#9E2F9E #9E662F #2F9E2F #2F669E
split-complementary
#9E2F9E #669E2F #2F9E66
monochromatic
#401340 #6F216F #9E2F9E #C743C7 #D572D5

Accessibility & contrast

On white

6.26
#9E2F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9E2F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2F9E
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2F9E#FFFFFF#000000##FFFFFF
##9E2F9E1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C57A1
Deuteranopia (green-blind)
#4C659B
Tritanopia (blue-blind)
#A33F63
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9e2f9e;
/* rgb */ color: rgb(158, 47, 158);
/* oklch */ color: oklch(51.5% 0.193 327.9);
Tailwind
colors: {
  custom: {
    50: '#be72bb',
    500: '#9e2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #9e2f9e;
$custom-light: #be72bb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2f9e",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 300,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51537,
    "c": 0.19284,
    "h": 327.9
  },
  "luminance": 0.11771
}

Semantic roles & 50–950 ramp

primary
#9E2F9E
secondary
#6CBD6C
accent
#DE4A4A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9E2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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