#9C27AD#9C27AD

#9C27AD is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.5% C 0.213 H 322.2°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9C27AD
RGBrgb(156, 39, 173)
HSLhsl(292, 63%, 42%)
HSVhsv(292, 77%, 68%)
CMYKcmyk(9.8%, 77.5%, 0%, 32.2%)
CIE-LABlab(40.47, 63.48, -46.58)
CIE-LCHlch(40.47, 78.74, 323.73°)
OKLaboklab(51.49% 0.168 -0.1304)
OKLCHoklch(51.49% 0.213 322.2)
XYZxyz(21.9779, 11.5374, 40.5964)
Luminance0.1154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C27AD #38AD27
analogous
#5927AD #9C27AD #AD277B
triadic
#9C27AD #AD9C27 #27AD9C
tetradic
#9C27AD #AD5927 #38AD27 #277BAD
square
#9C27AD #AD5927 #38AD27 #277BAD
split-complementary
#9C27AD #7BAD27 #27AD59
monochromatic
#421049 #6F1C7B #9C27AD #C03ED3 #D170DF

Accessibility & contrast

On white

6.35
#9C27AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9C27AD
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C27AD#FFFFFF#000000##FFFFFF
##9C27AD1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B1
Deuteranopia (green-blind)
#3B64AA
Tritanopia (blue-blind)
#9E4269
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9c27ad;
/* rgb */ color: rgb(156, 39, 173);
/* oklch */ color: oklch(51.5% 0.213 322.2);
Tailwind
colors: {
  custom: {
    50: '#bd6fc6',
    500: '#9c27ad',
    950: '#000000',
  },
}
SCSS
$custom: #9c27ad;
$custom-light: #bd6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c27ad",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 292.388,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51487,
    "c": 0.21268,
    "h": 322.2
  },
  "luminance": 0.11536
}

Semantic roles & 50–950 ramp

primary
#9C27AD
secondary
#76C66A
accent
#E64256
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9C27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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