#8C27BE#8C27BE

#8C27BE is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.4% C 0.222 H 311.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8C27BE
RGBrgb(140, 39, 190)
HSLhsl(280, 66%, 45%)
HSVhsv(280, 79%, 75%)
CMYKcmyk(26.3%, 79.5%, 0%, 25.5%)
CIE-LABlab(39.15, 63.77, -58.89)
CIE-LCHlch(39.15, 86.80, 317.28°)
OKLaboklab(50.43% 0.1456 -0.167)
OKLCHoklch(50.43% 0.222 311.1)
XYZxyz(20.8332, 10.7447, 49.6817)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C27BE #59BE27
analogous
#4027BE #8C27BE #BE27A5
triadic
#8C27BE #BE8C27 #27BE8C
tetradic
#8C27BE #BE4027 #59BE27 #27A5BE
square
#8C27BE #BE4027 #59BE27 #27A5BE
split-complementary
#8C27BE #A5BE27 #27BE40
monochromatic
#411258 #671D8B #8C27BE #AA49DA #C17BE4

Accessibility & contrast

On white

6.67
#8C27BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8C27BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C27BE
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C27BE#FFFFFF#000000##FFFFFF
##8C27BE1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#854D73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c27be;
/* rgb */ color: rgb(140, 39, 190);
/* oklch */ color: oklch(50.4% 0.222 311.1);
Tailwind
colors: {
  custom: {
    50: '#b36ed2',
    500: '#8c27be',
    950: '#000000',
  },
}
SCSS
$custom: #8c27be;
$custom-light: #b36ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c27be",
  "rgb": {
    "r": 140,
    "g": 39,
    "b": 190
  },
  "hsl": {
    "h": 280.132,
    "s": 65.939,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50428,
    "c": 0.22152,
    "h": 311.1
  },
  "luminance": 0.10744
}

Semantic roles & 50–950 ramp

primary
#8C27BE
secondary
#92CC75
accent
#E93F77
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8C27BE

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

Preview Lab → · Contrast checker → · Palette generator →

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