#9C2DA2#9C2DA2

#9C2DA2 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.3% C 0.197 H 325.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9C2DA2
RGBrgb(156, 45, 162)
HSLhsl(297, 57%, 41%)
HSVhsv(297, 72%, 64%)
CMYKcmyk(3.7%, 72.2%, 0%, 36.5%)
CIE-LABlab(40.50, 59.55, -39.97)
CIE-LCHlch(40.50, 71.72, 326.13°)
OKLaboklab(51.29% 0.1632 -0.1111)
OKLCHoklch(51.29% 0.197 325.8)
XYZxyz(21.1698, 11.5547, 35.2907)
Luminance0.1155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2DA2 #33A22D
analogous
#612DA2 #9C2DA2 #A22D6D
triadic
#9C2DA2 #A29C2D #2DA29C
tetradic
#9C2DA2 #A2612D #33A22D #2D6DA2
square
#9C2DA2 #A2612D #33A22D #2D6DA2
split-complementary
#9C2DA2 #6DA22D #2DA261
monochromatic
#401242 #6E2072 #9C2DA2 #C342CA #D372D8

Accessibility & contrast

On white

6.34
#9C2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9C2DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2DA2
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2DA2#FFFFFF#000000##FFFFFF
##9C2DA21.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E57A5
Deuteranopia (green-blind)
#47649F
Tritanopia (blue-blind)
#A04065
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9c2da2;
/* rgb */ color: rgb(156, 45, 162);
/* oklch */ color: oklch(51.3% 0.197 325.8);
Tailwind
colors: {
  custom: {
    50: '#bd71be',
    500: '#9c2da2',
    950: '#000000',
  },
}
SCSS
$custom: #9c2da2;
$custom-light: #bd71be;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2da2",
  "rgb": {
    "r": 156,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 296.923,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51294,
    "c": 0.19742,
    "h": 325.8
  },
  "luminance": 0.11553
}

Semantic roles & 50–950 ramp

primary
#9C2DA2
secondary
#70BF6C
accent
#E04850
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120812
muted
#817B81

Preview Lab

Preview with #9C2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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