#9C2DBD#9C2DBD

#9C2DBD is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.0% C 0.220 H 317.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9C2DBD
RGBrgb(156, 45, 189)
HSLhsl(286, 62%, 46%)
HSVhsv(286, 76%, 74%)
CMYKcmyk(17.5%, 76.2%, 0%, 25.9%)
CIE-LABlab(42.18, 64.50, -53.27)
CIE-LCHlch(42.18, 83.65, 320.44°)
OKLaboklab(53.03% 0.1611 -0.15)
OKLCHoklch(53.03% 0.22 317)
XYZxyz(23.8326, 12.6198, 49.3147)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2DBD #4EBD2D
analogous
#542DBD #9C2DBD #BD2D96
triadic
#9C2DBD #BD9C2D #2DBD9C
tetradic
#9C2DBD #BD542D #4EBD2D #2D96BD
square
#9C2DBD #BD542D #4EBD2D #2D96BD
split-complementary
#9C2DBD #96BD2D #2DBD54
monochromatic
#4A155A #73218C #9C2DBD #B752D6 #CC83E1

Accessibility & contrast

On white

5.96
#9C2DBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9C2DBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2DBD
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2DBD#FFFFFF#000000##FFFFFF
##9C2DBD1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#2F67BA
Tritanopia (blue-blind)
#9A4D74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9c2dbd;
/* rgb */ color: rgb(156, 45, 189);
/* oklch */ color: oklch(53.0% 0.220 317.0);
Tailwind
colors: {
  custom: {
    50: '#be72d2',
    500: '#9c2dbd',
    950: '#000000',
  },
}
SCSS
$custom: #9c2dbd;
$custom-light: #be72d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2dbd",
  "rgb": {
    "r": 156,
    "g": 45,
    "b": 189
  },
  "hsl": {
    "h": 286.25,
    "s": 61.538,
    "l": 45.882
  },
  "oklch": {
    "l": 0.53031,
    "c": 0.22011,
    "h": 317
  },
  "luminance": 0.12619
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C2DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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