#9E2FA1#9E2FA1

#9E2FA1 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.7% C 0.195 H 326.8°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9E2FA1
RGBrgb(158, 47, 161)
HSLhsl(298, 55%, 41%)
HSVhsv(298, 71%, 63%)
CMYKcmyk(1.9%, 70.8%, 0%, 36.9%)
CIE-LABlab(41.02, 59.11, -38.52)
CIE-LCHlch(41.02, 70.56, 326.91°)
OKLaboklab(51.71% 0.1635 -0.1068)
OKLCHoklch(51.71% 0.195 326.8)
XYZxyz(21.5497, 11.8768, 34.8687)
Luminance0.1187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2FA1 #32A12F
analogous
#652FA1 #9E2FA1 #A12F6B
triadic
#9E2FA1 #A19E2F #2FA19E
tetradic
#9E2FA1 #A1652F #32A12F #2F6BA1
square
#9E2FA1 #A1652F #32A12F #2F6BA1
split-complementary
#9E2FA1 #6BA12F #2FA165
monochromatic
#411342 #702172 #9E2FA1 #C545C9 #D474D6

Accessibility & contrast

On white

6.22
#9E2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9E2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2FA1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2FA1#FFFFFF#000000##FFFFFF
##9E2FA11.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A4
Deuteranopia (green-blind)
#4A669E
Tritanopia (blue-blind)
#A24165
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e2fa1;
/* rgb */ color: rgb(158, 47, 161);
/* oklch */ color: oklch(51.7% 0.195 326.8);
Tailwind
colors: {
  custom: {
    50: '#be72bd',
    500: '#9e2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #9e2fa1;
$custom-light: #be72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2fa1",
  "rgb": {
    "r": 158,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 298.421,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51711,
    "c": 0.19527,
    "h": 326.8
  },
  "luminance": 0.11875
}

Semantic roles & 50–950 ramp

primary
#9E2FA1
secondary
#70BE6E
accent
#DE4A4E
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9E2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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