#9D1E9D#9D1E9D

#9D1E9D is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.209 H 328.2°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#9D1E9D
RGBrgb(157, 30, 157)
HSLhsl(300, 68%, 37%)
HSVhsv(300, 81%, 62%)
CMYKcmyk(0%, 80.9%, 0%, 38.4%)
CIE-LABlab(38.78, 63.50, -39.68)
CIE-LCHlch(38.78, 74.88, 328.00°)
OKLaboklab(50.01% 0.1773 -0.1101)
OKLCHoklch(50.01% 0.209 328.2)
XYZxyz(20.4545, 10.5325, 32.8474)
Luminance0.1053 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1E9D #1E9D1E
analogous
#5E1E9D #9D1E9D #9D1E5E
triadic
#9D1E9D #9D9D1E #1E9D9D
tetradic
#9D1E9D #9D5E1E #1E9D1E #1E5E9D
square
#9D1E9D #9D5E1E #1E9D1E #1E5E9D
split-complementary
#9D1E9D #5E9D1E #1E9D5E
monochromatic
#360A36 #6A146A #9D1E9D #D028D0 #DF57DF

Accessibility & contrast

On white

6.76
#9D1E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9D1E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1E9D
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1E9D#FFFFFF#000000##FFFFFF
##9D1E9D1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#44619A
Tritanopia (blue-blind)
#A2355E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d1e9d;
/* rgb */ color: rgb(157, 30, 157);
/* oklch */ color: oklch(50.0% 0.209 328.2);
Tailwind
colors: {
  custom: {
    50: '#be6bba',
    500: '#9d1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #9d1e9d;
$custom-light: #be6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1e9d",
  "rgb": {
    "r": 157,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 300,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.50008,
    "c": 0.20873,
    "h": 328.2
  },
  "luminance": 0.10531
}

Semantic roles & 50–950 ramp

primary
#9D1E9D
secondary
#54C254
accent
#EB3D3D
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9D1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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