#8E27BA#8E27BA

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

Color values

HEX#8E27BA
RGBrgb(142, 39, 186)
HSLhsl(282, 65%, 44%)
HSVhsv(282, 79%, 73%)
CMYKcmyk(23.7%, 79%, 0%, 27.1%)
CIE-LABlab(39.15, 63.30, -56.52)
CIE-LCHlch(39.15, 84.86, 318.24°)
OKLaboklab(50.4% 0.149 -0.1599)
OKLCHoklch(50.4% 0.219 313)
XYZxyz(20.7422, 10.7476, 47.4267)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27BA #53BA27
analogous
#4527BA #8E27BA #BA279D
triadic
#8E27BA #BA8E27 #27BA8E
tetradic
#8E27BA #BA4527 #53BA27 #279DBA
square
#8E27BA #BA4527 #53BA27 #279DBA
split-complementary
#8E27BA #9DBA27 #27BA45
monochromatic
#411255 #671C87 #8E27BA #AC46D8 #C379E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E27BA#FFFFFF#000000##FFFFFF
##8E27BA1.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)
#0057BE
Deuteranopia (green-blind)
#0F5EB7
Tritanopia (blue-blind)
#894B71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8e27ba;
/* rgb */ color: rgb(142, 39, 186);
/* oklch */ color: oklch(50.4% 0.219 313.0);
Tailwind
colors: {
  custom: {
    50: '#b46ed0',
    500: '#8e27ba',
    950: '#000000',
  },
}
SCSS
$custom: #8e27ba;
$custom-light: #b46ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27ba",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 282.041,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.504,
    "c": 0.21859,
    "h": 313
  },
  "luminance": 0.10747
}

Semantic roles & 50–950 ramp

primary
#8E27BA
secondary
#8DCB72
accent
#E84072
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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