#8E27B2#8E27B2

#8E27B2 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.212 H 315.3°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8E27B2
RGBrgb(142, 39, 178)
HSLhsl(284, 64%, 43%)
HSVhsv(284, 78%, 70%)
CMYKcmyk(20.2%, 78.1%, 0%, 30.2%)
CIE-LABlab(38.58, 61.71, -52.71)
CIE-LCHlch(38.58, 81.16, 319.50°)
OKLaboklab(49.82% 0.1505 -0.1488)
OKLCHoklch(49.82% 0.212 315.3)
XYZxyz(19.9154, 10.4169, 43.0725)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27B2 #4BB227
analogous
#4827B2 #8E27B2 #B22791
triadic
#8E27B2 #B28E27 #27B28E
tetradic
#8E27B2 #B24827 #4BB227 #2791B2
square
#8E27B2 #B24827 #4BB227 #2791B2
split-complementary
#8E27B2 #91B227 #27B248
monochromatic
#3E114E #661C80 #8E27B2 #AF41D5 #C473E0

Accessibility & contrast

On white

6.81
#8E27B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8E27B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E27B2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27B2#FFFFFF#000000##FFFFFF
##8E27B21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#215DAF
Tritanopia (blue-blind)
#8B476C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e27b2;
/* rgb */ color: rgb(142, 39, 178);
/* oklch */ color: oklch(49.8% 0.212 315.3);
Tailwind
colors: {
  custom: {
    50: '#b46dca',
    500: '#8e27b2',
    950: '#000000',
  },
}
SCSS
$custom: #8e27b2;
$custom-light: #b46dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27b2",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 284.46,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49817,
    "c": 0.2116,
    "h": 315.3
  },
  "luminance": 0.10416
}

Semantic roles & 50–950 ramp

primary
#8E27B2
secondary
#85C86D
accent
#E7416C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8E27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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