#9D2DBD#9D2DBD

#9D2DBD is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.2% C 0.220 H 317.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9D2DBD
RGBrgb(157, 45, 189)
HSLhsl(287, 62%, 46%)
HSVhsv(287, 76%, 74%)
CMYKcmyk(16.9%, 76.2%, 0%, 25.9%)
CIE-LABlab(42.34, 64.69, -53.02)
CIE-LCHlch(42.34, 83.64, 320.66°)
OKLaboklab(53.17% 0.1623 -0.1492)
OKLCHoklch(53.17% 0.22 317.4)
XYZxyz(24.0270, 12.7201, 49.3238)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2DBD #4DBD2D
analogous
#552DBD #9D2DBD #BD2D95
triadic
#9D2DBD #BD9D2D #2DBD9D
tetradic
#9D2DBD #BD552D #4DBD2D #2D95BD
square
#9D2DBD #BD552D #4DBD2D #2D95BD
split-complementary
#9D2DBD #95BD2D #2DBD55
monochromatic
#4B155A #74218C #9D2DBD #B852D6 #CC83E1

Accessibility & contrast

On white

5.93
#9D2DBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9D2DBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2DBD
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2DBD#FFFFFF#000000##FFFFFF
##9D2DBD1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#3167BA
Tritanopia (blue-blind)
#9C4C74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d2dbd;
/* rgb */ color: rgb(157, 45, 189);
/* oklch */ color: oklch(53.2% 0.220 317.4);
Tailwind
colors: {
  custom: {
    50: '#be72d2',
    500: '#9d2dbd',
    950: '#000000',
  },
}
SCSS
$custom: #9d2dbd;
$custom-light: #be72d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2dbd",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 189
  },
  "hsl": {
    "h": 286.667,
    "s": 61.538,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5317,
    "c": 0.22046,
    "h": 317.4
  },
  "luminance": 0.12719
}

Semantic roles & 50–950 ramp

primary
#9D2DBD
secondary
#8DCB7B
accent
#E54367
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130914
muted
#827B83

Preview Lab

Preview with #9D2DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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