#9E1F9C#9E1F9C

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

Color values

HEX#9E1F9C
RGBrgb(158, 31, 156)
HSLhsl(301, 67%, 37%)
HSVhsv(301, 80%, 62%)
CMYKcmyk(0%, 80.4%, 1.3%, 38%)
CIE-LABlab(38.99, 63.29, -38.74)
CIE-LCHlch(38.99, 74.20, 328.53°)
OKLaboklab(50.17% 0.1777 -0.1074)
OKLCHoklch(50.17% 0.208 328.9)
XYZxyz(20.5911, 10.6510, 32.4174)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E1F9C #1F9E21
analogous
#611F9E #9E1F9C #9E1F5D
triadic
#9E1F9C #9C9E1F #1F9C9E
tetradic
#9E1F9C #9E611F #1F9E21 #1F5D9E
square
#9E1F9C #9E611F #1F9E21 #1F5D9E
split-complementary
#9E1F9C #5D9E1F #1F9E61
monochromatic
#380B37 #6B1569 #9E1F9C #D129CF #DE59DC

Accessibility & contrast

On white

6.71
#9E1F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9E1F9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E1F9C
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E1F9C#FFFFFF#000000##FFFFFF
##9E1F9C1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519F
Deuteranopia (green-blind)
#466199
Tritanopia (blue-blind)
#A4355E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9e1f9c;
/* rgb */ color: rgb(158, 31, 156);
/* oklch */ color: oklch(50.2% 0.208 328.9);
Tailwind
colors: {
  custom: {
    50: '#bf6cba',
    500: '#9e1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #9e1f9c;
$custom-light: #bf6cba;
$custom-dark: #000000;
JSON
{
  "hex": "#9e1f9c",
  "rgb": {
    "r": 158,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 300.945,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.50167,
    "c": 0.2076,
    "h": 328.9
  },
  "luminance": 0.10649
}

Semantic roles & 50–950 ramp

primary
#9E1F9C
secondary
#56C258
accent
#EA403E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9E1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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