#9D1F96#9D1F96

#9D1F96 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.7% C 0.203 H 330.7°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#9D1F96
RGBrgb(157, 31, 150)
HSLhsl(303, 67%, 37%)
HSVhsv(303, 80%, 62%)
CMYKcmyk(0%, 80.3%, 4.5%, 38.4%)
CIE-LABlab(38.47, 62.13, -35.94)
CIE-LCHlch(38.47, 71.78, 329.95°)
OKLaboklab(49.65% 0.1768 -0.0993)
OKLCHoklch(49.65% 0.203 330.7)
XYZxyz(19.8996, 10.3517, 29.7983)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F96 #1F9D26
analogous
#651F9D #9D1F96 #9D1F57
triadic
#9D1F96 #969D1F #1F969D
tetradic
#9D1F96 #9D651F #1F9D26 #1F579D
square
#9D1F96 #9D651F #1F9D26 #1F579D
split-complementary
#9D1F96 #579D1F #1F9D65
monochromatic
#370B34 #6A1565 #9D1F96 #D029C7 #DE58D7

Accessibility & contrast

On white

6.84
#9D1F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9D1F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F96
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F96#FFFFFF#000000##FFFFFF
##9D1F961.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5099
Deuteranopia (green-blind)
#496093
Tritanopia (blue-blind)
#A3325B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d1f96;
/* rgb */ color: rgb(157, 31, 150);
/* oklch */ color: oklch(49.7% 0.203 330.7);
Tailwind
colors: {
  custom: {
    50: '#be6bb5',
    500: '#9d1f96',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f96;
$custom-light: #be6bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f96",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 303.333,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49653,
    "c": 0.20272,
    "h": 330.7
  },
  "luminance": 0.1035
}

Semantic roles & 50–950 ramp

primary
#9D1F96
secondary
#56C25C
accent
#EA473E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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