#9C2DB9#9C2DB9

#9C2DB9 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.8% C 0.217 H 318.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9C2DB9
RGBrgb(156, 45, 185)
HSLhsl(288, 61%, 45%)
HSVhsv(288, 76%, 73%)
CMYKcmyk(15.7%, 75.7%, 0%, 27.5%)
CIE-LABlab(41.92, 63.74, -51.35)
CIE-LCHlch(41.92, 81.85, 321.14°)
OKLaboklab(52.76% 0.1616 -0.1444)
OKLCHoklch(52.76% 0.217 318.2)
XYZxyz(23.4044, 12.4486, 47.0595)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2DB9 #4AB92D
analogous
#562DB9 #9C2DB9 #B92D90
triadic
#9C2DB9 #B99C2D #2DB99C
tetradic
#9C2DB9 #B9562D #4AB92D #2D90B9
square
#9C2DB9 #B9562D #4AB92D #2D90B9
split-complementary
#9C2DB9 #90B92D #2DB956
monochromatic
#491557 #722188 #9C2DB9 #B94FD4 #CC80E0

Accessibility & contrast

On white

6.02
#9C2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9C2DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2DB9
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2DB9#FFFFFF#000000##FFFFFF
##9C2DB91.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#3466B6
Tritanopia (blue-blind)
#9B4B72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9c2db9;
/* rgb */ color: rgb(156, 45, 185);
/* oklch */ color: oklch(52.8% 0.217 318.2);
Tailwind
colors: {
  custom: {
    50: '#bd72cf',
    500: '#9c2db9',
    950: '#000000',
  },
}
SCSS
$custom: #9c2db9;
$custom-light: #bd72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2db9",
  "rgb": {
    "r": 156,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 287.571,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5276,
    "c": 0.21668,
    "h": 318.2
  },
  "luminance": 0.12447
}

Semantic roles & 50–950 ramp

primary
#9C2DB9
secondary
#89C979
accent
#E44465
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9C2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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