#9C27BD#9C27BD

#9C27BD is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.6% C 0.226 H 317.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9C27BD
RGBrgb(156, 39, 189)
HSLhsl(287, 66%, 45%)
HSVhsv(287, 79%, 74%)
CMYKcmyk(17.5%, 79.4%, 0%, 25.9%)
CIE-LABlab(41.52, 66.41, -54.34)
CIE-LCHlch(41.52, 85.81, 320.71°)
OKLaboklab(52.56% 0.166 -0.1531)
OKLCHoklch(52.56% 0.226 317.3)
XYZxyz(23.6198, 12.1941, 49.2438)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C27BD #48BD27
analogous
#5127BD #9C27BD #BD2793
triadic
#9C27BD #BD9C27 #27BD9C
tetradic
#9C27BD #BD5127 #48BD27 #2793BD
square
#9C27BD #BD5127 #48BD27 #2793BD
split-complementary
#9C27BD #93BD27 #27BD51
monochromatic
#481258 #721D8A #9C27BD #B948D9 #CD7BE4

Accessibility & contrast

On white

6.11
#9C27BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#9C27BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C27BD
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C27BD#FFFFFF#000000##FFFFFF
##9C27BD1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#2A65BA
Tritanopia (blue-blind)
#9A4A73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9c27bd;
/* rgb */ color: rgb(156, 39, 189);
/* oklch */ color: oklch(52.6% 0.226 317.3);
Tailwind
colors: {
  custom: {
    50: '#be70d2',
    500: '#9c27bd',
    950: '#000000',
  },
}
SCSS
$custom: #9c27bd;
$custom-light: #be70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#9c27bd",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 286.8,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52564,
    "c": 0.2258,
    "h": 317.3
  },
  "luminance": 0.12193
}

Semantic roles & 50–950 ramp

primary
#9C27BD
secondary
#87CC74
accent
#E93F64
background
#FCF7FD
surface
#F8EDFA
border
#D1C8D3
text
#130814
muted
#827B83

Preview Lab

Preview with #9C27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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