#9E1E8D#9E1E8D

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

Color values

HEX#9E1E8D
RGBrgb(158, 30, 141)
HSLhsl(308, 68%, 37%)
HSVhsv(308, 81%, 62%)
CMYKcmyk(0%, 81%, 10.8%, 38%)
CIE-LABlab(38.06, 61.23, -31.07)
CIE-LCHlch(38.06, 68.66, 333.09°)
OKLaboklab(49.24% 0.1784 -0.0852)
OKLCHoklch(49.24% 0.198 334.5)
XYZxyz(19.3728, 10.1225, 26.1277)
Luminance0.1012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1E8D #1E9E2F
analogous
#6F1E9E #9E1E8D #9E1E4D
triadic
#9E1E8D #8D9E1E #1E8D9E
tetradic
#9E1E8D #9E6F1E #1E9E2F #1E4D9E
square
#9E1E8D #9E6F1E #1E9E2F #1E4D9E
split-complementary
#9E1E8D #4D9E1E #1E9E6F
monochromatic
#370A31 #6B145F #9E1E8D #D128BB #DF57CD

Accessibility & contrast

On white

6.94
#9E1E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9E1E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1E8D
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1E8D#FFFFFF#000000##FFFFFF
##9E1E8D1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E90
Deuteranopia (green-blind)
#4E608A
Tritanopia (blue-blind)
#A62B55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9e1e8d;
/* rgb */ color: rgb(158, 30, 141);
/* oklch */ color: oklch(49.2% 0.198 334.5);
Tailwind
colors: {
  custom: {
    50: '#bf6baf',
    500: '#9e1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #9e1e8d;
$custom-light: #bf6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1e8d",
  "rgb": {
    "r": 158,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 307.969,
    "s": 68.085,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49238,
    "c": 0.19766,
    "h": 334.5
  },
  "luminance": 0.10121
}

Semantic roles & 50–950 ramp

primary
#9E1E8D
secondary
#55C364
accent
#EB543D
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9E1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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