#9C27AF#9C27AF

#9C27AF is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.6% C 0.214 H 321.6°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9C27AF
RGBrgb(156, 39, 175)
HSLhsl(292, 64%, 42%)
HSVhsv(292, 78%, 69%)
CMYKcmyk(10.9%, 77.7%, 0%, 31.4%)
CIE-LABlab(40.60, 63.84, -47.57)
CIE-LCHlch(40.60, 79.61, 323.31°)
OKLaboklab(51.62% 0.1678 -0.1332)
OKLCHoklch(51.62% 0.214 321.6)
XYZxyz(22.1728, 11.6154, 41.6232)
Luminance0.1161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C27AF #3AAF27
analogous
#5827AF #9C27AF #AF277E
triadic
#9C27AF #AF9C27 #27AF9C
tetradic
#9C27AF #AF5827 #3AAF27 #277EAF
square
#9C27AF #AF5827 #3AAF27 #277EAF
split-complementary
#9C27AF #7EAF27 #27AF58
monochromatic
#43114B #6F1C7D #9C27AF #BF3FD4 #D071DF

Accessibility & contrast

On white

6.32
#9C27AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#9C27AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C27AF
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C27AF#FFFFFF#000000##FFFFFF
##9C27AF1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B3
Deuteranopia (green-blind)
#3A64AC
Tritanopia (blue-blind)
#9D436B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9c27af;
/* rgb */ color: rgb(156, 39, 175);
/* oklch */ color: oklch(51.6% 0.214 321.6);
Tailwind
colors: {
  custom: {
    50: '#bd6fc7',
    500: '#9c27af',
    950: '#000000',
  },
}
SCSS
$custom: #9c27af;
$custom-light: #bd6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c27af",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 291.618,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51618,
    "c": 0.2143,
    "h": 321.6
  },
  "luminance": 0.11614
}

Semantic roles & 50–950 ramp

primary
#9C27AF
secondary
#78C66B
accent
#E74158
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9C27AF

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

Preview Lab → · Contrast checker → · Palette generator →

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