#9E1F9D#9E1F9D

#9E1F9D is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.2% C 0.208 H 328.5°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#9E1F9D
RGBrgb(158, 31, 157)
HSLhsl(300, 67%, 37%)
HSVhsv(300, 80%, 62%)
CMYKcmyk(0%, 80.4%, 0.6%, 38%)
CIE-LABlab(39.04, 63.45, -39.25)
CIE-LCHlch(39.04, 74.61, 328.25°)
OKLaboklab(50.23% 0.1776 -0.1089)
OKLCHoklch(50.23% 0.208 328.5)
XYZxyz(20.6761, 10.6850, 32.8652)
Luminance0.1068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F9D #1F9E20
analogous
#5F1F9E #9E1F9D #9E1F5E
triadic
#9E1F9D #9D9E1F #1F9D9E
tetradic
#9E1F9D #9E5F1F #1F9E20 #1F5E9E
square
#9E1F9D #9E5F1F #1F9E20 #1F5E9E
split-complementary
#9E1F9D #5E9E1F #1F9E5F
monochromatic
#380B37 #6B156A #9E1F9D #D129D0 #DE59DD

Accessibility & contrast

On white

6.70
#9E1F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E1F9D
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F9D#FFFFFF#000000##FFFFFF
##9E1F9D1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#46629A
Tritanopia (blue-blind)
#A3355F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e1f9d;
/* rgb */ color: rgb(158, 31, 157);
/* oklch */ color: oklch(50.2% 0.208 328.5);
Tailwind
colors: {
  custom: {
    50: '#bf6cba',
    500: '#9e1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f9d;
$custom-light: #bf6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f9d",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 300.472,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.50227,
    "c": 0.20834,
    "h": 328.5
  },
  "luminance": 0.10683
}

Semantic roles & 50–950 ramp

primary
#9E1F9D
secondary
#56C257
accent
#EA3F3E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9E1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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