#9E2D97#9E2D97

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

Color values

HEX#9E2D97
RGBrgb(158, 45, 151)
HSLhsl(304, 56%, 40%)
HSVhsv(304, 72%, 62%)
CMYKcmyk(0%, 71.5%, 4.4%, 38%)
CIE-LABlab(40.22, 58.15, -33.77)
CIE-LCHlch(40.22, 67.24, 329.86°)
OKLaboklab(50.96% 0.1653 -0.093)
OKLCHoklch(50.96% 0.19 330.6)
XYZxyz(20.6248, 11.3818, 30.3828)
Luminance0.1138 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2D97 #2D9E34
analogous
#6D2D9E #9E2D97 #9E2D5E
triadic
#9E2D97 #979E2D #2D979E
tetradic
#9E2D97 #9E6D2D #2D9E34 #2D5E9E
square
#9E2D97 #9E6D2D #2D9E34 #2D5E9E
split-complementary
#9E2D97 #5E9E2D #2D9E6D
monochromatic
#3F123C #6E1F69 #9E2D97 #C940C0 #D66FD0

Accessibility & contrast

On white

6.41
#9E2D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9E2D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2D97
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2D97#FFFFFF#000000##FFFFFF
##9E2D971.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9e2d97;
/* rgb */ color: rgb(158, 45, 151);
/* oklch */ color: oklch(51.0% 0.190 330.6);
Tailwind
colors: {
  custom: {
    50: '#be71b6',
    500: '#9e2d97',
    950: '#000000',
  },
}
SCSS
$custom: #9e2d97;
$custom-light: #be71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2d97",
  "rgb": {
    "r": 158,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 303.717,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50956,
    "c": 0.18965,
    "h": 330.6
  },
  "luminance": 0.1138
}

Semantic roles & 50–950 ramp

primary
#9E2D97
secondary
#69BD6F
accent
#DF5249
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9E2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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