#8C27BB#8C27BB

#8C27BB is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.2% C 0.219 H 311.9°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8C27BB
RGBrgb(140, 39, 187)
HSLhsl(281, 65%, 44%)
HSVhsv(281, 79%, 73%)
CMYKcmyk(25.1%, 79.1%, 0%, 26.7%)
CIE-LABlab(38.92, 63.15, -57.49)
CIE-LCHlch(38.92, 85.40, 317.69°)
OKLaboklab(50.2% 0.1462 -0.1629)
OKLCHoklch(50.2% 0.219 311.9)
XYZxyz(20.5087, 10.6149, 47.9726)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C27BB #56BB27
analogous
#4227BB #8C27BB #BB27A0
triadic
#8C27BB #BB8C27 #27BB8C
tetradic
#8C27BB #BB4227 #56BB27 #27A0BB
square
#8C27BB #BB4227 #56BB27 #27A0BB
split-complementary
#8C27BB #A0BB27 #27BB42
monochromatic
#401256 #661C88 #8C27BB #AA47D9 #C279E3

Accessibility & contrast

On white

6.72
#8C27BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8C27BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C27BB
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C27BB#FFFFFF#000000##FFFFFF
##8C27BB1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#025DB8
Tritanopia (blue-blind)
#864C71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c27bb;
/* rgb */ color: rgb(140, 39, 187);
/* oklch */ color: oklch(50.2% 0.219 311.9);
Tailwind
colors: {
  custom: {
    50: '#b36ed0',
    500: '#8c27bb',
    950: '#000000',
  },
}
SCSS
$custom: #8c27bb;
$custom-light: #b36ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c27bb",
  "rgb": {
    "r": 140,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 280.946,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50202,
    "c": 0.21886,
    "h": 311.9
  },
  "luminance": 0.10614
}

Semantic roles & 50–950 ramp

primary
#8C27BB
secondary
#8FCB73
accent
#E83F75
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8C27BB

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

Preview Lab → · Contrast checker → · Palette generator →

#8C27BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva