#8C27BC#8C27BC

#8C27BC is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.220 H 311.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8C27BC
RGBrgb(140, 39, 188)
HSLhsl(281, 66%, 45%)
HSVhsv(281, 79%, 74%)
CMYKcmyk(25.5%, 79.3%, 0%, 26.3%)
CIE-LABlab(39.00, 63.36, -57.96)
CIE-LCHlch(39.00, 85.87, 317.55°)
OKLaboklab(50.28% 0.146 -0.1642)
OKLCHoklch(50.28% 0.22 311.6)
XYZxyz(20.6161, 10.6579, 48.5384)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C27BC #57BC27
analogous
#4127BC #8C27BC #BC27A2
triadic
#8C27BC #BC8C27 #27BC8C
tetradic
#8C27BC #BC4127 #57BC27 #27A2BC
square
#8C27BC #BC4127 #57BC27 #27A2BC
split-complementary
#8C27BC #A2BC27 #27BC41
monochromatic
#411257 #661C89 #8C27BC #AA47D9 #C17AE3

Accessibility & contrast

On white

6.71
#8C27BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8C27BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C27BC
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C27BC#FFFFFF#000000##FFFFFF
##8C27BC1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#005EB9
Tritanopia (blue-blind)
#864C72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c27bc;
/* rgb */ color: rgb(140, 39, 188);
/* oklch */ color: oklch(50.3% 0.220 311.6);
Tailwind
colors: {
  custom: {
    50: '#b36ed1',
    500: '#8c27bc',
    950: '#000000',
  },
}
SCSS
$custom: #8c27bc;
$custom-light: #b36ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c27bc",
  "rgb": {
    "r": 140,
    "g": 39,
    "b": 188
  },
  "hsl": {
    "h": 280.671,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50277,
    "c": 0.21974,
    "h": 311.6
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#8C27BC
secondary
#90CB73
accent
#E93F76
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8C27BC

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

Preview Lab → · Contrast checker → · Palette generator →

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