#9E1F9E#9E1F9E

#9E1F9E is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.209 H 328.1°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#9E1F9E
RGBrgb(158, 31, 158)
HSLhsl(300, 67%, 37%)
HSVhsv(300, 80%, 62%)
CMYKcmyk(0%, 80.4%, 0%, 38%)
CIE-LABlab(39.10, 63.61, -39.76)
CIE-LCHlch(39.10, 75.02, 327.99°)
OKLaboklab(50.29% 0.1776 -0.1103)
OKLCHoklch(50.29% 0.209 328.1)
XYZxyz(20.7619, 10.7193, 33.3166)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F9E #1F9E1F
analogous
#5F1F9E #9E1F9E #9E1F5F
triadic
#9E1F9E #9E9E1F #1F9E9E
tetradic
#9E1F9E #9E5F1F #1F9E1F #1F5F9E
square
#9E1F9E #9E5F1F #1F9E1F #1F5F9E
split-complementary
#9E1F9E #5F9E1F #1F9E5F
monochromatic
#380B38 #6B156B #9E1F9E #D129D1 #DE59DE

Accessibility & contrast

On white

6.68
#9E1F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9E1F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1F9E
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F9E#FFFFFF#000000##FFFFFF
##9E1F9E1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#45629B
Tritanopia (blue-blind)
#A3365F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e1f9e;
/* rgb */ color: rgb(158, 31, 158);
/* oklch */ color: oklch(50.3% 0.209 328.1);
Tailwind
colors: {
  custom: {
    50: '#bf6cbb',
    500: '#9e1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f9e;
$custom-light: #bf6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f9e",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 300,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.50288,
    "c": 0.20909,
    "h": 328.1
  },
  "luminance": 0.10718
}

Semantic roles & 50–950 ramp

primary
#9E1F9E
secondary
#56C256
accent
#EA3E3E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9E1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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