#9D2DB2#9D2DB2

#9D2DB2 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.4% C 0.211 H 320.8°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9D2DB2
RGBrgb(157, 45, 178)
HSLhsl(291, 60%, 44%)
HSVhsv(291, 75%, 70%)
CMYKcmyk(11.8%, 74.7%, 0%, 30.2%)
CIE-LABlab(41.63, 62.63, -47.69)
CIE-LCHlch(41.63, 78.72, 322.72°)
OKLaboklab(52.44% 0.1635 -0.1336)
OKLCHoklch(52.44% 0.211 320.8)
XYZxyz(22.8780, 12.2604, 43.2723)
Luminance0.1226 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2DB2 #42B22D
analogous
#5A2DB2 #9D2DB2 #B22D84
triadic
#9D2DB2 #B29D2D #2DB29D
tetradic
#9D2DB2 #B25A2D #42B22D #2D84B2
square
#9D2DB2 #B25A2D #42B22D #2D84B2
split-complementary
#9D2DB2 #84B22D #2DB25A
monochromatic
#471450 #722181 #9D2DB2 #BC4BD1 #CE7CDE

Accessibility & contrast

On white

6.08
#9D2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9D2DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2DB2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2DB2#FFFFFF#000000##FFFFFF
##9D2DB21.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#3C66AF
Tritanopia (blue-blind)
#9E476E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d2db2;
/* rgb */ color: rgb(157, 45, 178);
/* oklch */ color: oklch(52.4% 0.211 320.8);
Tailwind
colors: {
  custom: {
    50: '#be72ca',
    500: '#9d2db2',
    950: '#000000',
  },
}
SCSS
$custom: #9d2db2;
$custom-light: #be72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2db2",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 290.526,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5244,
    "c": 0.21114,
    "h": 320.8
  },
  "luminance": 0.12259
}

Semantic roles & 50–950 ramp

primary
#9D2DB2
secondary
#82C675
accent
#E3455E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9D2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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