#9D1F97#9D1F97

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

Color values

HEX#9D1F97
RGBrgb(157, 31, 151)
HSLhsl(303, 67%, 37%)
HSVhsv(303, 80%, 62%)
CMYKcmyk(0%, 80.3%, 3.8%, 38.4%)
CIE-LABlab(38.52, 62.28, -36.46)
CIE-LCHlch(38.52, 72.17, 329.66°)
OKLaboklab(49.71% 0.1768 -0.1008)
OKLCHoklch(49.71% 0.203 330.3)
XYZxyz(19.9805, 10.3841, 30.2241)
Luminance0.1038 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F97 #1F9D25
analogous
#641F9D #9D1F97 #9D1F58
triadic
#9D1F97 #979D1F #1F979D
tetradic
#9D1F97 #9D641F #1F9D25 #1F589D
square
#9D1F97 #9D641F #1F9D25 #1F589D
split-complementary
#9D1F97 #589D1F #1F9D64
monochromatic
#370B35 #6A1566 #9D1F97 #D029C8 #DE58D8

Accessibility & contrast

On white

6.83
#9D1F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9D1F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F97
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F97#FFFFFF#000000##FFFFFF
##9D1F971.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08509A
Deuteranopia (green-blind)
#486194
Tritanopia (blue-blind)
#A3325B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d1f97;
/* rgb */ color: rgb(157, 31, 151);
/* oklch */ color: oklch(49.7% 0.203 330.3);
Tailwind
colors: {
  custom: {
    50: '#be6bb6',
    500: '#9d1f97',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f97;
$custom-light: #be6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f97",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 302.857,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49712,
    "c": 0.20346,
    "h": 330.3
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#9D1F97
secondary
#56C25B
accent
#EA463E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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