#9D1B9E#9D1B9E

#9D1B9E is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.9% C 0.212 H 327.8°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#9D1B9E
RGBrgb(157, 27, 158)
HSLhsl(300, 71%, 36%)
HSVhsv(300, 83%, 62%)
CMYKcmyk(0.6%, 82.9%, 0%, 38%)
CIE-LABlab(38.59, 64.40, -40.59)
CIE-LCHlch(38.59, 76.12, 327.77°)
OKLaboklab(49.89% 0.1793 -0.1128)
OKLCHoklch(49.89% 0.212 327.8)
XYZxyz(20.4679, 10.4221, 33.2748)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1B9E #1C9E1B
analogous
#5C1B9E #9D1B9E #9E1B5E
triadic
#9D1B9E #9E9D1B #1B9E9D
tetradic
#9D1B9E #9E5C1B #1C9E1B #1B5E9E
square
#9D1B9E #9E5C1B #1C9E1B #1B5E9E
split-complementary
#9D1B9E #5E9E1B #1B9E5C
monochromatic
#350935 #69126A #9D1B9E #D124D2 #E052E1

Accessibility & contrast

On white

6.81
#9D1B9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D1B9E
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1B9E#FFFFFF#000000##FFFFFF
##9D1B9E1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A1
Deuteranopia (green-blind)
#43609B
Tritanopia (blue-blind)
#A2345E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d1b9e;
/* rgb */ color: rgb(157, 27, 158);
/* oklch */ color: oklch(49.9% 0.212 327.8);
Tailwind
colors: {
  custom: {
    50: '#be6abb',
    500: '#9d1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #9d1b9e;
$custom-light: #be6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1b9e",
  "rgb": {
    "r": 157,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 299.542,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.49891,
    "c": 0.21184,
    "h": 327.8
  },
  "luminance": 0.10421
}

Semantic roles & 50–950 ramp

primary
#9D1B9E
secondary
#51C451
accent
#EE3A3C
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9D1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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