#9D1B9B#9D1B9B

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

Color values

HEX#9D1B9B
RGBrgb(157, 27, 155)
HSLhsl(301, 71%, 36%)
HSVhsv(301, 83%, 62%)
CMYKcmyk(0%, 82.8%, 1.3%, 38.4%)
CIE-LABlab(38.41, 63.92, -39.06)
CIE-LCHlch(38.41, 74.91, 328.57°)
OKLaboklab(49.71% 0.1795 -0.1083)
OKLCHoklch(49.71% 0.21 328.9)
XYZxyz(20.2128, 10.3201, 31.9314)
Luminance0.1032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1B9B #1B9D1D
analogous
#5E1B9D #9D1B9B #9D1B5A
triadic
#9D1B9B #9B9D1B #1B9B9D
tetradic
#9D1B9B #9D5E1B #1B9D1D #1B5A9D
square
#9D1B9B #9D5E1B #1B9D1D #1B5A9D
split-complementary
#9D1B9B #5A9D1B #1B9D5E
monochromatic
#350934 #691267 #9D1B9B #D124CF #E151DF

Accessibility & contrast

On white

6.85
#9D1B9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9D1B9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1B9B
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1B9B#FFFFFF#000000##FFFFFF
##9D1B9B1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#446098
Tritanopia (blue-blind)
#A3325D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d1b9b;
/* rgb */ color: rgb(157, 27, 155);
/* oklch */ color: oklch(49.7% 0.210 328.9);
Tailwind
colors: {
  custom: {
    50: '#be6ab9',
    500: '#9d1b9b',
    950: '#000000',
  },
}
SCSS
$custom: #9d1b9b;
$custom-light: #be6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1b9b",
  "rgb": {
    "r": 157,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 300.923,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.49707,
    "c": 0.20964,
    "h": 328.9
  },
  "luminance": 0.10319
}

Semantic roles & 50–950 ramp

primary
#9D1B9B
secondary
#50C452
accent
#ED3D3A
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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