#9E1D8D#9E1D8D

#9E1D8D is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.2% C 0.199 H 334.5°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9E1D8D
RGBrgb(158, 29, 141)
HSLhsl(308, 69%, 37%)
HSVhsv(308, 82%, 62%)
CMYKcmyk(0%, 81.6%, 10.8%, 38%)
CIE-LABlab(37.97, 61.49, -31.21)
CIE-LCHlch(37.97, 68.96, 333.09°)
OKLaboklab(49.18% 0.1791 -0.0856)
OKLCHoklch(49.18% 0.199 334.5)
XYZxyz(19.3479, 10.0727, 26.1194)
Luminance0.1007 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1D8D #1D9E2E
analogous
#6F1D9E #9E1D8D #9E1D4D
triadic
#9E1D8D #8D9E1D #1D8D9E
tetradic
#9E1D8D #9E6F1D #1D9E2E #1D4D9E
square
#9E1D8D #9E6F1D #1D9E2E #1D4D9E
split-complementary
#9E1D8D #4D9E1D #1D9E6F
monochromatic
#370A31 #6A145F #9E1D8D #D226BB #E056CE

Accessibility & contrast

On white

6.97
#9E1D8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#9E1D8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1D8D
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1D8D#FFFFFF#000000##FFFFFF
##9E1D8D1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4E90
Deuteranopia (green-blind)
#4E608A
Tritanopia (blue-blind)
#A62B55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1d8d;
/* rgb */ color: rgb(158, 29, 141);
/* oklch */ color: oklch(49.2% 0.199 334.5);
Tailwind
colors: {
  custom: {
    50: '#bf6aaf',
    500: '#9e1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #9e1d8d;
$custom-light: #bf6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1d8d",
  "rgb": {
    "r": 158,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 307.907,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.49175,
    "c": 0.19851,
    "h": 334.5
  },
  "luminance": 0.10071
}

Semantic roles & 50–950 ramp

primary
#9E1D8D
secondary
#54C362
accent
#EC533C
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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