#9E2DA1#9E2DA1

#9E2DA1 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.5% C 0.198 H 326.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9E2DA1
RGBrgb(158, 45, 161)
HSLhsl(298, 56%, 40%)
HSVhsv(298, 72%, 63%)
CMYKcmyk(1.9%, 72%, 0%, 36.9%)
CIE-LABlab(40.77, 59.83, -38.92)
CIE-LCHlch(40.77, 71.37, 326.95°)
OKLaboklab(51.53% 0.1655 -0.108)
OKLCHoklch(51.53% 0.198 326.9)
XYZxyz(21.4716, 11.7206, 34.8427)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2DA1 #30A12D
analogous
#642DA1 #9E2DA1 #A12D6A
triadic
#9E2DA1 #A19E2D #2DA19E
tetradic
#9E2DA1 #A1642D #30A12D #2D6AA1
square
#9E2DA1 #A1642D #30A12D #2D6AA1
split-complementary
#9E2DA1 #6AA12D #2DA164
monochromatic
#401241 #6F2071 #9E2DA1 #C641CA #D571D7

Accessibility & contrast

On white

6.28
#9E2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9E2DA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2DA1
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2DA1#FFFFFF#000000##FFFFFF
##9E2DA11.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1357A4
Deuteranopia (green-blind)
#49659E
Tritanopia (blue-blind)
#A23F64
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9e2da1;
/* rgb */ color: rgb(158, 45, 161);
/* oklch */ color: oklch(51.5% 0.198 326.9);
Tailwind
colors: {
  custom: {
    50: '#be71bd',
    500: '#9e2da1',
    950: '#000000',
  },
}
SCSS
$custom: #9e2da1;
$custom-light: #be71bd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2da1",
  "rgb": {
    "r": 158,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 298.448,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51531,
    "c": 0.19757,
    "h": 326.9
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#9E2DA1
secondary
#6DBF6B
accent
#E0484C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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