#9D1A8B#9D1A8B

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

Color values

HEX#9D1A8B
RGBrgb(157, 26, 139)
HSLhsl(308, 72%, 36%)
HSVhsv(308, 83%, 62%)
CMYKcmyk(0%, 83.4%, 11.5%, 38.4%)
CIE-LABlab(37.43, 61.71, -30.85)
CIE-LCHlch(37.43, 68.99, 333.44°)
OKLaboklab(48.72% 0.1802 -0.0845)
OKLCHoklch(48.72% 0.199 334.9)
XYZxyz(18.9345, 9.7727, 25.3102)
Luminance0.0977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1A8B #1A9D2C
analogous
#6D1A9D #9D1A8B #9D1A49
triadic
#9D1A8B #8B9D1A #1A8B9D
tetradic
#9D1A8B #9D6D1A #1A9D2C #1A499D
square
#9D1A8B #9D6D1A #1A9D2C #1A499D
split-complementary
#9D1A8B #499D1A #1A9D6D
monochromatic
#34092E #68115D #9D1A8B #D223B9 #E24FCE

Accessibility & contrast

On white

7.11
#9D1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9D1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1A8B
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1A8B#FFFFFF#000000##FFFFFF
##9D1A8B1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d1a8b;
/* rgb */ color: rgb(157, 26, 139);
/* oklch */ color: oklch(48.7% 0.199 334.9);
Tailwind
colors: {
  custom: {
    50: '#be69ad',
    500: '#9d1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #9d1a8b;
$custom-light: #be69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1a8b",
  "rgb": {
    "r": 157,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 308.244,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4872,
    "c": 0.19907,
    "h": 334.9
  },
  "luminance": 0.09771
}

Semantic roles & 50–950 ramp

primary
#9D1A8B
secondary
#4EC45F
accent
#EE5239
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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