#9D1EA7#9D1EA7

#9D1EA7 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.6% C 0.216 H 324.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9D1EA7
RGBrgb(157, 30, 167)
HSLhsl(296, 70%, 39%)
HSVhsv(296, 82%, 65%)
CMYKcmyk(6%, 82%, 0%, 34.5%)
CIE-LABlab(39.39, 65.15, -44.73)
CIE-LCHlch(39.39, 79.03, 325.53°)
OKLaboklab(50.64% 0.1766 -0.1248)
OKLCHoklch(50.64% 0.216 324.7)
XYZxyz(21.3434, 10.8881, 37.5292)
Luminance0.1089 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1EA7 #28A71E
analogous
#581EA7 #9D1EA7 #A71E6C
triadic
#9D1EA7 #A79D1E #1EA79D
tetradic
#9D1EA7 #A7581E #28A71E #1E6CA7
square
#9D1EA7 #A7581E #28A71E #1E6CA7
split-complementary
#9D1EA7 #6CA71E #1EA758
monochromatic
#3B0B3F #6C1573 #9D1EA7 #CC2AD9 #D85DE2

Accessibility & contrast

On white

6.61
#9D1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9D1EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1EA7
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1EA7#FFFFFF#000000##FFFFFF
##9D1EA71.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#3D62A4
Tritanopia (blue-blind)
#A03A64
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d1ea7;
/* rgb */ color: rgb(157, 30, 167);
/* oklch */ color: oklch(50.6% 0.216 324.7);
Tailwind
colors: {
  custom: {
    50: '#be6cc2',
    500: '#9d1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #9d1ea7;
$custom-light: #be6cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1ea7",
  "rgb": {
    "r": 157,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 295.62,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.50635,
    "c": 0.21627,
    "h": 324.7
  },
  "luminance": 0.10887
}

Semantic roles & 50–950 ramp

primary
#9D1EA7
secondary
#62C65B
accent
#EC3B48
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9D1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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