#9D1B8B#9D1B8B

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

Color values

HEX#9D1B8B
RGBrgb(157, 27, 139)
HSLhsl(308, 71%, 36%)
HSVhsv(308, 83%, 62%)
CMYKcmyk(0%, 82.8%, 11.5%, 38.4%)
CIE-LABlab(37.51, 61.47, -30.72)
CIE-LCHlch(37.51, 68.72, 333.45°)
OKLaboklab(48.78% 0.1795 -0.0841)
OKLCHoklch(48.78% 0.198 334.9)
XYZxyz(18.9570, 9.8178, 25.3177)
Luminance0.0982 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1B8B #1B9D2D
analogous
#6E1B9D #9D1B8B #9D1B4A
triadic
#9D1B8B #8B9D1B #1B8B9D
tetradic
#9D1B8B #9D6E1B #1B9D2D #1B4A9D
square
#9D1B8B #9D6E1B #1B9D2D #1B4A9D
split-complementary
#9D1B8B #4A9D1B #1B9D6E
monochromatic
#35092F #69125D #9D1B8B #D124B9 #E151CD

Accessibility & contrast

On white

7.09
#9D1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D1B8B
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1B8B#FFFFFF#000000##FFFFFF
##9D1B8B1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8E
Deuteranopia (green-blind)
#4D5F88
Tritanopia (blue-blind)
#A52954
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d1b8b;
/* rgb */ color: rgb(157, 27, 139);
/* oklch */ color: oklch(48.8% 0.198 334.9);
Tailwind
colors: {
  custom: {
    50: '#be6aad',
    500: '#9d1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #9d1b8b;
$custom-light: #be6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1b8b",
  "rgb": {
    "r": 157,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 308.308,
    "s": 70.652,
    "l": 36.078
  },
  "oklch": {
    "l": 0.48778,
    "c": 0.19827,
    "h": 334.9
  },
  "luminance": 0.09816
}

Semantic roles & 50–950 ramp

primary
#9D1B8B
secondary
#50C460
accent
#ED533A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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