#9D1B96#9D1B96

#9D1B96 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.4% C 0.206 H 330.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#9D1B96
RGBrgb(157, 27, 150)
HSLhsl(303, 71%, 36%)
HSVhsv(303, 83%, 62%)
CMYKcmyk(0%, 82.8%, 4.5%, 38.4%)
CIE-LABlab(38.12, 63.13, -36.49)
CIE-LCHlch(38.12, 72.92, 329.97°)
OKLaboklab(49.41% 0.1797 -0.1008)
OKLCHoklch(49.41% 0.206 330.7)
XYZxyz(19.8016, 10.1556, 29.7656)
Luminance0.1015 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1B96 #1B9D22
analogous
#631B9D #9D1B96 #9D1B55
triadic
#9D1B96 #969D1B #1B969D
tetradic
#9D1B96 #9D631B #1B9D22 #1B559D
square
#9D1B96 #9D631B #1B9D22 #1B559D
split-complementary
#9D1B96 #559D1B #1B9D63
monochromatic
#350932 #691264 #9D1B96 #D124C8 #E151D9

Accessibility & contrast

On white

6.93
#9D1B96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9D1B96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1B96
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1B96#FFFFFF#000000##FFFFFF
##9D1B961.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014F99
Deuteranopia (green-blind)
#476093
Tritanopia (blue-blind)
#A32F5A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d1b96;
/* rgb */ color: rgb(157, 27, 150);
/* oklch */ color: oklch(49.4% 0.206 330.7);
Tailwind
colors: {
  custom: {
    50: '#be6ab5',
    500: '#9d1b96',
    950: '#000000',
  },
}
SCSS
$custom: #9d1b96;
$custom-light: #be6ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1b96",
  "rgb": {
    "r": 157,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 303.231,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.49407,
    "c": 0.20601,
    "h": 330.7
  },
  "luminance": 0.10154
}

Semantic roles & 50–950 ramp

primary
#9D1B96
secondary
#50C456
accent
#ED443A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130711
muted
#827A80

Preview Lab

Preview with #9D1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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