#9D1B97#9D1B97

#9D1B97 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.207 H 330.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#9D1B97
RGBrgb(157, 27, 151)
HSLhsl(303, 71%, 36%)
HSVhsv(303, 83%, 62%)
CMYKcmyk(0%, 82.8%, 3.8%, 38.4%)
CIE-LABlab(38.18, 63.29, -37.01)
CIE-LCHlch(38.18, 73.31, 329.68°)
OKLaboklab(49.47% 0.1796 -0.1023)
OKLCHoklch(49.47% 0.207 330.3)
XYZxyz(19.8824, 10.1880, 30.1915)
Luminance0.1019 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1B97 #1B9D21
analogous
#621B9D #9D1B97 #9D1B56
triadic
#9D1B97 #979D1B #1B979D
tetradic
#9D1B97 #9D621B #1B9D21 #1B569D
square
#9D1B97 #9D621B #1B9D21 #1B569D
split-complementary
#9D1B97 #569D1B #1B9D62
monochromatic
#350933 #691265 #9D1B97 #D124C9 #E151DA

Accessibility & contrast

On white

6.91
#9D1B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9D1B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1B97
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1B97#FFFFFF#000000##FFFFFF
##9D1B971.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d1b97;
/* rgb */ color: rgb(157, 27, 151);
/* oklch */ color: oklch(49.5% 0.207 330.3);
Tailwind
colors: {
  custom: {
    50: '#be6ab6',
    500: '#9d1b97',
    950: '#000000',
  },
}
SCSS
$custom: #9d1b97;
$custom-light: #be6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1b97",
  "rgb": {
    "r": 157,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 302.769,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.49466,
    "c": 0.20673,
    "h": 330.3
  },
  "luminance": 0.10186
}

Semantic roles & 50–950 ramp

primary
#9D1B97
secondary
#50C455
accent
#ED433A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9D1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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