#9E1D8B#9E1D8B

#9E1D8B is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.1% C 0.197 H 335.3°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#9E1D8B
RGBrgb(158, 29, 139)
HSLhsl(309, 69%, 37%)
HSVhsv(309, 82%, 62%)
CMYKcmyk(0%, 81.6%, 12%, 38%)
CIE-LABlab(37.87, 61.19, -30.15)
CIE-LCHlch(37.87, 68.22, 333.77°)
OKLaboklab(49.07% 0.179 -0.0825)
OKLCHoklch(49.07% 0.197 335.3)
XYZxyz(19.2004, 10.0137, 25.3427)
Luminance0.1001 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1D8B #1D9E30
analogous
#711D9E #9E1D8B #9E1D4B
triadic
#9E1D8B #8B9E1D #1D8B9E
tetradic
#9E1D8B #9E711D #1D9E30 #1D4B9E
square
#9E1D8B #9E711D #1D9E30 #1D4B9E
split-complementary
#9E1D8B #4B9E1D #1D9E71
monochromatic
#370A30 #6A145E #9E1D8B #D226B8 #E056CC

Accessibility & contrast

On white

6.99
#9E1D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#9E1D8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1D8B
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1D8B#FFFFFF#000000##FFFFFF
##9E1D8B1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4D8E
Deuteranopia (green-blind)
#4F6088
Tritanopia (blue-blind)
#A62A54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9e1d8b;
/* rgb */ color: rgb(158, 29, 139);
/* oklch */ color: oklch(49.1% 0.197 335.3);
Tailwind
colors: {
  custom: {
    50: '#bf6aad',
    500: '#9e1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #9e1d8b;
$custom-light: #bf6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1d8b",
  "rgb": {
    "r": 158,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 308.837,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.49065,
    "c": 0.19713,
    "h": 335.3
  },
  "luminance": 0.10012
}

Semantic roles & 50–950 ramp

primary
#9E1D8B
secondary
#54C364
accent
#EC563C
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9E1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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