#9C2DBA#9C2DBA

#9C2DBA is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.8% C 0.218 H 317.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#9C2DBA
RGBrgb(156, 45, 186)
HSLhsl(287, 61%, 45%)
HSVhsv(287, 76%, 73%)
CMYKcmyk(16.1%, 75.8%, 0%, 27.1%)
CIE-LABlab(41.99, 63.93, -51.83)
CIE-LCHlch(41.99, 82.30, 320.96°)
OKLaboklab(52.83% 0.1615 -0.1458)
OKLCHoklch(52.83% 0.218 317.9)
XYZxyz(23.5104, 12.4909, 47.6174)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2DBA #4BBA2D
analogous
#552DBA #9C2DBA #BA2D91
triadic
#9C2DBA #BA9C2D #2DBA9C
tetradic
#9C2DBA #BA552D #4BBA2D #2D91BA
square
#9C2DBA #BA552D #4BBA2D #2D91BA
split-complementary
#9C2DBA #91BA2D #2DBA55
monochromatic
#491557 #732189 #9C2DBA #B850D5 #CC81E0

Accessibility & contrast

On white

6.00
#9C2DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#9C2DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2DBA
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2DBA#FFFFFF#000000##FFFFFF
##9C2DBA1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#3366B7
Tritanopia (blue-blind)
#9B4B72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9c2dba;
/* rgb */ color: rgb(156, 45, 186);
/* oklch */ color: oklch(52.8% 0.218 317.9);
Tailwind
colors: {
  custom: {
    50: '#bd72cf',
    500: '#9c2dba',
    950: '#000000',
  },
}
SCSS
$custom: #9c2dba;
$custom-light: #bd72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2dba",
  "rgb": {
    "r": 156,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 287.234,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52827,
    "c": 0.21753,
    "h": 317.9
  },
  "luminance": 0.1249
}

Semantic roles & 50–950 ramp

primary
#9C2DBA
secondary
#8AC979
accent
#E44466
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9C2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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