#9C2A8D#9C2A8D

#9C2A8D is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.184 H 333.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9C2A8D
RGBrgb(156, 42, 141)
HSLhsl(308, 58%, 39%)
HSVhsv(308, 73%, 61%)
CMYKcmyk(0%, 73.1%, 9.6%, 38.8%)
CIE-LABlab(38.98, 57.13, -29.65)
CIE-LCHlch(38.98, 64.36, 332.57°)
OKLaboklab(49.83% 0.1656 -0.0812)
OKLCHoklch(49.83% 0.184 333.9)
XYZxyz(19.3461, 10.6486, 26.2306)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2A8D #2A9C39
analogous
#722A9C #9C2A8D #9C2A54
triadic
#9C2A8D #8D9C2A #2A8D9C
tetradic
#9C2A8D #9C722A #2A9C39 #2A549C
square
#9C2A8D #9C722A #2A9C39 #2A549C
split-complementary
#9C2A8D #549C2A #2A9C72
monochromatic
#3C1036 #6C1D61 #9C2A8D #CA39B7 #D76AC8

Accessibility & contrast

On white

6.71
#9C2A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9C2A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2A8D
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2A8D#FFFFFF#000000##FFFFFF
##9C2A8D1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#51628A
Tritanopia (blue-blind)
#A33458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9c2a8d;
/* rgb */ color: rgb(156, 42, 141);
/* oklch */ color: oklch(49.8% 0.184 333.9);
Tailwind
colors: {
  custom: {
    50: '#bd6fae',
    500: '#9c2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #9c2a8d;
$custom-light: #bd6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2a8d",
  "rgb": {
    "r": 156,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 307.895,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.49833,
    "c": 0.18443,
    "h": 333.9
  },
  "luminance": 0.10647
}

Semantic roles & 50–950 ramp

primary
#9C2A8D
secondary
#65BD70
accent
#E15B47
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9C2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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