#9E2E97#9E2E97

#9E2E97 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.0% C 0.188 H 330.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9E2E97
RGBrgb(158, 46, 151)
HSLhsl(304, 55%, 40%)
HSVhsv(304, 71%, 62%)
CMYKcmyk(0%, 70.9%, 4.4%, 38%)
CIE-LABlab(40.34, 57.79, -33.57)
CIE-LCHlch(40.34, 66.83, 329.85°)
OKLaboklab(51.05% 0.1642 -0.0925)
OKLCHoklch(51.05% 0.188 330.6)
XYZxyz(20.6634, 11.4590, 30.3957)
Luminance0.1146 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2E97 #2E9E35
analogous
#6D2E9E #9E2E97 #9E2E5F
triadic
#9E2E97 #979E2E #2E979E
tetradic
#9E2E97 #9E6D2E #2E9E35 #2E5F9E
square
#9E2E97 #9E6D2E #2E9E35 #2E5F9E
split-complementary
#9E2E97 #5F9E2E #2E9E6D
monochromatic
#3F123C #6F206A #9E2E97 #C841BF #D671CF

Accessibility & contrast

On white

6.38
#9E2E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9E2E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2E97
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2E97#FFFFFF#000000##FFFFFF
##9E2E971.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24559A
Deuteranopia (green-blind)
#4F6594
Tritanopia (blue-blind)
#A43B5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e2e97;
/* rgb */ color: rgb(158, 46, 151);
/* oklch */ color: oklch(51.0% 0.188 330.6);
Tailwind
colors: {
  custom: {
    50: '#be71b6',
    500: '#9e2e97',
    950: '#000000',
  },
}
SCSS
$custom: #9e2e97;
$custom-light: #be71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2e97",
  "rgb": {
    "r": 158,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 303.75,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.51048,
    "c": 0.18847,
    "h": 330.6
  },
  "luminance": 0.11457
}

Semantic roles & 50–950 ramp

primary
#9E2E97
secondary
#6BBD70
accent
#DE534A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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