#8B27BC#8B27BC

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

Color values

HEX#8B27BC
RGBrgb(139, 39, 188)
HSLhsl(280, 66%, 45%)
HSVhsv(280, 79%, 74%)
CMYKcmyk(26.1%, 79.3%, 0%, 26.3%)
CIE-LABlab(38.85, 63.18, -58.21)
CIE-LCHlch(38.85, 85.91, 317.35°)
OKLaboklab(50.14% 0.1447 -0.165)
OKLCHoklch(50.14% 0.219 311.2)
XYZxyz(20.4483, 10.5714, 48.5305)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27BC #58BC27
analogous
#4027BC #8B27BC #BC27A3
triadic
#8B27BC #BC8B27 #27BC8B
tetradic
#8B27BC #BC4027 #58BC27 #27A3BC
square
#8B27BC #BC4027 #58BC27 #27A3BC
split-complementary
#8B27BC #A3BC27 #27BC40
monochromatic
#401257 #661C89 #8B27BC #A947D9 #C17AE3

Accessibility & contrast

On white

6.74
#8B27BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8B27BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B27BC
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27BC#FFFFFF#000000##FFFFFF
##8B27BC1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#854C72
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b27bc;
/* rgb */ color: rgb(139, 39, 188);
/* oklch */ color: oklch(50.1% 0.219 311.2);
Tailwind
colors: {
  custom: {
    50: '#b26ed1',
    500: '#8b27bc',
    950: '#000000',
  },
}
SCSS
$custom: #8b27bc;
$custom-light: #b26ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27bc",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 188
  },
  "hsl": {
    "h": 280.268,
    "s": 65.639,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50142,
    "c": 0.21946,
    "h": 311.2
  },
  "luminance": 0.10571
}

Semantic roles & 50–950 ramp

primary
#8B27BC
secondary
#90CB73
accent
#E93F77
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B27BC

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

Preview Lab → · Contrast checker → · Palette generator →

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