#9E2AAA#9E2AAA

#9E2AAA is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.208 H 323.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9E2AAA
RGBrgb(158, 42, 170)
HSLhsl(294, 60%, 42%)
HSVhsv(294, 75%, 67%)
CMYKcmyk(7.1%, 75.3%, 0%, 33.3%)
CIE-LABlab(40.94, 62.40, -44.03)
CIE-LCHlch(40.94, 76.37, 324.80°)
OKLaboklab(51.83% 0.168 -0.1228)
OKLCHoklch(51.83% 0.208 323.8)
XYZxyz(22.1836, 11.8287, 39.1371)
Luminance0.1183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2AAA #36AA2A
analogous
#5E2AAA #9E2AAA #AA2A76
triadic
#9E2AAA #AA9E2A #2AAA9E
tetradic
#9E2AAA #AA5E2A #36AA2A #2A76AA
square
#9E2AAA #AA5E2A #36AA2A #2A76AA
split-complementary
#9E2AAA #76AA2A #2AAA5E
monochromatic
#431248 #701E79 #9E2AAA #C341D0 #D272DC

Accessibility & contrast

On white

6.24
#9E2AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9E2AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2AAA
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2AAA#FFFFFF#000000##FFFFFF
##9E2AAA1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#4265A7
Tritanopia (blue-blind)
#A14268
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e2aaa;
/* rgb */ color: rgb(158, 42, 170);
/* oklch */ color: oklch(51.8% 0.208 323.8);
Tailwind
colors: {
  custom: {
    50: '#be70c4',
    500: '#9e2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #9e2aaa;
$custom-light: #be70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2aaa",
  "rgb": {
    "r": 158,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 294.375,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51826,
    "c": 0.2081,
    "h": 323.8
  },
  "luminance": 0.11827
}

Semantic roles & 50–950 ramp

primary
#9E2AAA
secondary
#74C36C
accent
#E44453
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9E2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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