#9D2D8A#9D2D8A

#9D2D8A is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.1% C 0.179 H 335.6°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9D2D8A
RGBrgb(157, 45, 138)
HSLhsl(310, 55%, 40%)
HSVhsv(310, 71%, 62%)
CMYKcmyk(0%, 71.3%, 12.1%, 38.4%)
CIE-LABlab(39.38, 55.84, -27.18)
CIE-LCHlch(39.38, 62.10, 334.05°)
OKLaboklab(50.1% 0.1632 -0.0741)
OKLCHoklch(50.1% 0.179 335.6)
XYZxyz(19.4307, 10.8815, 25.1168)
Luminance0.1088 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2D8A #2D9D40
analogous
#782D9D #9D2D8A #9D2D52
triadic
#9D2D8A #8A9D2D #2D8A9D
tetradic
#9D2D8A #9D782D #2D9D40 #2D529D
square
#9D2D8A #9D782D #2D9D40 #2D529D
split-complementary
#9D2D8A #529D2D #2D9D78
monochromatic
#3E1236 #6D1F60 #9D2D8A #C83FB1 #D66FC4

Accessibility & contrast

On white

6.61
#9D2D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9D2D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2D8A
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2D8A#FFFFFF#000000##FFFFFF
##9D2D8A1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E528D
Deuteranopia (green-blind)
#546387
Tritanopia (blue-blind)
#A53558
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2d8a;
/* rgb */ color: rgb(157, 45, 138);
/* oklch */ color: oklch(50.1% 0.179 335.6);
Tailwind
colors: {
  custom: {
    50: '#bd70ac',
    500: '#9d2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #9d2d8a;
$custom-light: #bd70ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2d8a",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 310.179,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50104,
    "c": 0.17924,
    "h": 335.6
  },
  "luminance": 0.1088
}

Semantic roles & 50–950 ramp

primary
#9D2D8A
secondary
#69BD77
accent
#DF6249
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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