#9D2D8B#9D2D8B

#9D2D8B is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.2% C 0.180 H 335.2°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#9D2D8B
RGBrgb(157, 45, 139)
HSLhsl(310, 55%, 40%)
HSVhsv(310, 71%, 62%)
CMYKcmyk(0%, 71.3%, 11.5%, 38.4%)
CIE-LABlab(39.43, 55.99, -27.71)
CIE-LCHlch(39.43, 62.47, 333.67°)
OKLaboklab(50.16% 0.1633 -0.0756)
OKLCHoklch(50.16% 0.18 335.2)
XYZxyz(19.5034, 10.9106, 25.4999)
Luminance0.1091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2D8B #2D9D3F
analogous
#772D9D #9D2D8B #9D2D53
triadic
#9D2D8B #8B9D2D #2D8B9D
tetradic
#9D2D8B #9D772D #2D9D3F #2D539D
square
#9D2D8B #9D772D #2D9D3F #2D539D
split-complementary
#9D2D8B #539D2D #2D9D77
monochromatic
#3E1237 #6D1F61 #9D2D8B #C83FB2 #D66FC5

Accessibility & contrast

On white

6.60
#9D2D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D2D8B
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2D8B#FFFFFF#000000##FFFFFF
##9D2D8B1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d2d8b;
/* rgb */ color: rgb(157, 45, 139);
/* oklch */ color: oklch(50.2% 0.180 335.2);
Tailwind
colors: {
  custom: {
    50: '#bd70ad',
    500: '#9d2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #9d2d8b;
$custom-light: #bd70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2d8b",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 309.643,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50156,
    "c": 0.17997,
    "h": 335.2
  },
  "luminance": 0.10909
}

Semantic roles & 50–950 ramp

primary
#9D2D8B
secondary
#69BD76
accent
#DF6149
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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