#8E27B5#8E27B5

#8E27B5 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.214 H 314.4°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8E27B5
RGBrgb(142, 39, 181)
HSLhsl(284, 65%, 43%)
HSVhsv(284, 78%, 71%)
CMYKcmyk(21.5%, 78.5%, 0%, 29%)
CIE-LABlab(38.79, 62.31, -54.15)
CIE-LCHlch(38.79, 82.55, 319.01°)
OKLaboklab(50.03% 0.15 -0.153)
OKLCHoklch(50.03% 0.214 314.4)
XYZxyz(20.2199, 10.5387, 44.6762)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27B5 #4EB527
analogous
#4727B5 #8E27B5 #B52795
triadic
#8E27B5 #B58E27 #27B58E
tetradic
#8E27B5 #B54727 #4EB527 #2795B5
square
#8E27B5 #B54727 #4EB527 #2795B5
split-complementary
#8E27B5 #95B527 #27B547
monochromatic
#3F1150 #661C83 #8E27B5 #AE43D6 #C475E1

Accessibility & contrast

On white

6.76
#8E27B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E27B5
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27B5#FFFFFF#000000##FFFFFF
##8E27B51.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#1C5EB2
Tritanopia (blue-blind)
#8A496E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e27b5;
/* rgb */ color: rgb(142, 39, 181);
/* oklch */ color: oklch(50.0% 0.214 314.4);
Tailwind
colors: {
  custom: {
    50: '#b46ecc',
    500: '#8e27b5',
    950: '#000000',
  },
}
SCSS
$custom: #8e27b5;
$custom-light: #b46ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27b5",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 181
  },
  "hsl": {
    "h": 283.521,
    "s": 64.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50034,
    "c": 0.21421,
    "h": 314.4
  },
  "luminance": 0.10538
}

Semantic roles & 50–950 ramp

primary
#8E27B5
secondary
#88C96F
accent
#E8406E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #8E27B5

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

Preview Lab → · Contrast checker → · Palette generator →

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