#9D1B8A#9D1B8A

#9D1B8A is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.198 H 335.3°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#9D1B8A
RGBrgb(157, 27, 138)
HSLhsl(309, 71%, 36%)
HSVhsv(309, 83%, 62%)
CMYKcmyk(0%, 82.8%, 12.1%, 38.4%)
CIE-LABlab(37.46, 61.33, -30.19)
CIE-LCHlch(37.46, 68.35, 333.79°)
OKLaboklab(48.72% 0.1795 -0.0826)
OKLCHoklch(48.72% 0.198 335.3)
XYZxyz(18.8843, 9.7887, 24.9347)
Luminance0.0979 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1B8A #1B9D2E
analogous
#6F1B9D #9D1B8A #9D1B49
triadic
#9D1B8A #8A9D1B #1B8A9D
tetradic
#9D1B8A #9D6F1B #1B9D2E #1B499D
square
#9D1B8A #9D6F1B #1B9D2E #1B499D
split-complementary
#9D1B8A #499D1B #1B9D6F
monochromatic
#35092E #69125C #9D1B8A #D124B8 #E151CC

Accessibility & contrast

On white

7.10
#9D1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9D1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1B8A
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1B8A#FFFFFF#000000##FFFFFF
##9D1B8A1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4C8D
Deuteranopia (green-blind)
#4E5F87
Tritanopia (blue-blind)
#A52853
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d1b8a;
/* rgb */ color: rgb(157, 27, 138);
/* oklch */ color: oklch(48.7% 0.198 335.3);
Tailwind
colors: {
  custom: {
    50: '#be69ac',
    500: '#9d1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #9d1b8a;
$custom-light: #be69ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1b8a",
  "rgb": {
    "r": 157,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 308.769,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.48723,
    "c": 0.19759,
    "h": 335.3
  },
  "luminance": 0.09787
}

Semantic roles & 50–950 ramp

primary
#9D1B8A
secondary
#50C461
accent
#ED553A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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