#9C27A8#9C27A8

#9C27A8 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.2% C 0.209 H 323.8°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9C27A8
RGBrgb(156, 39, 168)
HSLhsl(294, 62%, 41%)
HSVhsv(294, 77%, 66%)
CMYKcmyk(7.1%, 76.8%, 0%, 34.1%)
CIE-LABlab(40.16, 62.60, -44.10)
CIE-LCHlch(40.16, 76.57, 324.83°)
OKLaboklab(51.17% 0.1685 -0.1231)
OKLCHoklch(51.17% 0.209 323.8)
XYZxyz(21.5031, 11.3475, 38.0959)
Luminance0.1135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C27A8 #33A827
analogous
#5C27A8 #9C27A8 #A82773
triadic
#9C27A8 #A89C27 #27A89C
tetradic
#9C27A8 #A85C27 #33A827 #2773A8
square
#9C27A8 #A85C27 #33A827 #2773A8
split-complementary
#9C27A8 #73A827 #27A85C
monochromatic
#401045 #6E1B76 #9C27A8 #C33BD1 #D36CDD

Accessibility & contrast

On white

6.42
#9C27A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9C27A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C27A8
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C27A8#FFFFFF#000000##FFFFFF
##9C27A81.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#3F63A5
Tritanopia (blue-blind)
#9F4067
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9c27a8;
/* rgb */ color: rgb(156, 39, 168);
/* oklch */ color: oklch(51.2% 0.209 323.8);
Tailwind
colors: {
  custom: {
    50: '#bd6fc2',
    500: '#9c27a8',
    950: '#000000',
  },
}
SCSS
$custom: #9c27a8;
$custom-light: #bd6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c27a8",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 294.419,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51166,
    "c": 0.20864,
    "h": 323.8
  },
  "luminance": 0.11346
}

Semantic roles & 50–950 ramp

primary
#9C27A8
secondary
#70C367
accent
#E54252
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9C27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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