#9D1D8D#9D1D8D

#9D1D8D is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.198 H 334.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#9D1D8D
RGBrgb(157, 29, 141)
HSLhsl(308, 69%, 36%)
HSVhsv(308, 82%, 62%)
CMYKcmyk(0%, 81.5%, 10.2%, 38.4%)
CIE-LABlab(37.79, 61.27, -31.51)
CIE-LCHlch(37.79, 68.90, 332.78°)
OKLaboklab(49.01% 0.1781 -0.0864)
OKLCHoklch(49.01% 0.198 334.1)
XYZxyz(19.1519, 9.9716, 26.1102)
Luminance0.0997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1D8D #1D9D2D
analogous
#6D1D9D #9D1D8D #9D1D4D
triadic
#9D1D8D #8D9D1D #1D8D9D
tetradic
#9D1D8D #9D6D1D #1D9D2D #1D4D9D
square
#9D1D8D #9D6D1D #1D9D2D #1D4D9D
split-complementary
#9D1D8D #4D9D1D #1D9D6D
monochromatic
#360A30 #69135F #9D1D8D #D127BB #E055CE

Accessibility & contrast

On white

7.01
#9D1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9D1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1D8D
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1D8D#FFFFFF#000000##FFFFFF
##9D1D8D1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194D90
Deuteranopia (green-blind)
#4D5F8A
Tritanopia (blue-blind)
#A52B55
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1d8d;
/* rgb */ color: rgb(157, 29, 141);
/* oklch */ color: oklch(49.0% 0.198 334.1);
Tailwind
colors: {
  custom: {
    50: '#be6aaf',
    500: '#9d1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #9d1d8d;
$custom-light: #be6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1d8d",
  "rgb": {
    "r": 157,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 307.5,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49012,
    "c": 0.198,
    "h": 334.1
  },
  "luminance": 0.0997
}

Semantic roles & 50–950 ramp

primary
#9D1D8D
secondary
#53C361
accent
#EC523C
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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