#9C27BA#9C27BA

#9C27BA is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.4% C 0.223 H 318.2°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9C27BA
RGBrgb(156, 39, 186)
HSLhsl(288, 65%, 44%)
HSVhsv(288, 79%, 73%)
CMYKcmyk(16.1%, 79%, 0%, 27.1%)
CIE-LABlab(41.32, 65.85, -52.91)
CIE-LCHlch(41.32, 84.47, 321.22°)
OKLaboklab(52.36% 0.1664 -0.1489)
OKLCHoklch(52.36% 0.223 318.2)
XYZxyz(23.2975, 12.0652, 47.5465)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C27BA #45BA27
analogous
#5327BA #9C27BA #BA278F
triadic
#9C27BA #BA9C27 #27BA9C
tetradic
#9C27BA #BA5327 #45BA27 #278FBA
square
#9C27BA #BA5327 #45BA27 #278FBA
split-complementary
#9C27BA #8FBA27 #27BA53
monochromatic
#471255 #721C87 #9C27BA #BA46D8 #CD79E3

Accessibility & contrast

On white

6.15
#9C27BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9C27BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C27BA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C27BA#FFFFFF#000000##FFFFFF
##9C27BA1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#2E65B7
Tritanopia (blue-blind)
#9B4871
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9c27ba;
/* rgb */ color: rgb(156, 39, 186);
/* oklch */ color: oklch(52.4% 0.223 318.2);
Tailwind
colors: {
  custom: {
    50: '#be70cf',
    500: '#9c27ba',
    950: '#000000',
  },
}
SCSS
$custom: #9c27ba;
$custom-light: #be70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c27ba",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 287.755,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52357,
    "c": 0.22331,
    "h": 318.2
  },
  "luminance": 0.12064
}

Semantic roles & 50–950 ramp

primary
#9C27BA
secondary
#84CB72
accent
#E84062
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9C27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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