#9E2D8D#9E2D8D

#9E2D8D is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.4% C 0.182 H 334.7°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#9E2D8D
RGBrgb(158, 45, 141)
HSLhsl(309, 56%, 40%)
HSVhsv(309, 72%, 62%)
CMYKcmyk(0%, 71.5%, 10.8%, 38%)
CIE-LABlab(39.70, 56.55, -28.50)
CIE-LCHlch(39.70, 63.33, 333.25°)
OKLaboklab(50.42% 0.1646 -0.0779)
OKLCHoklch(50.42% 0.182 334.7)
XYZxyz(19.8469, 11.0707, 26.2857)
Luminance0.1107 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E2D8D #2D9E3E
analogous
#772D9E #9E2D8D #9E2D54
triadic
#9E2D8D #8D9E2D #2D8D9E
tetradic
#9E2D8D #9E772D #2D9E3E #2D549E
square
#9E2D8D #9E772D #2D9E3E #2D549E
split-complementary
#9E2D8D #549E2D #2D9E77
monochromatic
#3F1238 #6E1F62 #9E2D8D #C940B4 #D66FC7

Accessibility & contrast

On white

6.53
#9E2D8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9E2D8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E2D8D
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E2D8D#FFFFFF#000000##FFFFFF
##9E2D8D1.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#53638A
Tritanopia (blue-blind)
#A63659
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e2d8d;
/* rgb */ color: rgb(158, 45, 141);
/* oklch */ color: oklch(50.4% 0.182 334.7);
Tailwind
colors: {
  custom: {
    50: '#be71ae',
    500: '#9e2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #9e2d8d;
$custom-light: #be71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9e2d8d",
  "rgb": {
    "r": 158,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 309.027,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50416,
    "c": 0.18205,
    "h": 334.7
  },
  "luminance": 0.11069
}

Semantic roles & 50–950 ramp

primary
#9E2D8D
secondary
#69BD76
accent
#DF5F49
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9E2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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