#9D1D97#9D1D97

#9D1D97 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.6% C 0.205 H 330.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9D1D97
RGBrgb(157, 29, 151)
HSLhsl(303, 69%, 36%)
HSVhsv(303, 82%, 62%)
CMYKcmyk(0%, 81.5%, 3.8%, 38.4%)
CIE-LABlab(38.35, 62.80, -36.74)
CIE-LCHlch(38.35, 72.76, 329.67°)
OKLaboklab(49.59% 0.1782 -0.1016)
OKLCHoklch(49.59% 0.205 330.3)
XYZxyz(19.9298, 10.2828, 30.2073)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1D97 #1D9D23
analogous
#631D9D #9D1D97 #9D1D57
triadic
#9D1D97 #979D1D #1D979D
tetradic
#9D1D97 #9D631D #1D9D23 #1D579D
square
#9D1D97 #9D631D #1D9D23 #1D579D
split-complementary
#9D1D97 #579D1D #1D9D63
monochromatic
#360A34 #691365 #9D1D97 #D127C9 #E055D9

Accessibility & contrast

On white

6.87
#9D1D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9D1D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1D97
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1D97#FFFFFF#000000##FFFFFF
##9D1D971.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034F9A
Deuteranopia (green-blind)
#476094
Tritanopia (blue-blind)
#A3315B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d1d97;
/* rgb */ color: rgb(157, 29, 151);
/* oklch */ color: oklch(49.6% 0.205 330.3);
Tailwind
colors: {
  custom: {
    50: '#be6bb6',
    500: '#9d1d97',
    950: '#000000',
  },
}
SCSS
$custom: #9d1d97;
$custom-light: #be6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1d97",
  "rgb": {
    "r": 157,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 302.813,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49585,
    "c": 0.20514,
    "h": 330.3
  },
  "luminance": 0.10281
}

Semantic roles & 50–950 ramp

primary
#9D1D97
secondary
#53C358
accent
#EC443C
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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