#8E27A3#8E27A3

#8E27A3 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.8% C 0.199 H 320.2°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8E27A3
RGBrgb(142, 39, 163)
HSLhsl(290, 61%, 40%)
HSVhsv(290, 76%, 64%)
CMYKcmyk(12.9%, 76.1%, 0%, 36.1%)
CIE-LABlab(37.57, 58.83, -45.39)
CIE-LCHlch(37.57, 74.30, 322.35°)
OKLaboklab(48.78% 0.1525 -0.1273)
OKLCHoklch(48.78% 0.199 320.2)
XYZxyz(18.4909, 9.8471, 35.5699)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27A3 #3CA327
analogous
#5027A3 #8E27A3 #A3277A
triadic
#8E27A3 #A38E27 #27A38E
tetradic
#8E27A3 #A35027 #3CA327 #277AA3
square
#8E27A3 #A35027 #3CA327 #277AA3
split-complementary
#8E27A3 #7AA327 #27A350
monochromatic
#380F40 #631B72 #8E27A3 #B638CF #C869DB

Accessibility & contrast

On white

7.07
#8E27A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8E27A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E27A3
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27A3#FFFFFF#000000##FFFFFF
##8E27A31.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#335CA0
Tritanopia (blue-blind)
#8E4064
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e27a3;
/* rgb */ color: rgb(142, 39, 163);
/* oklch */ color: oklch(48.8% 0.199 320.2);
Tailwind
colors: {
  custom: {
    50: '#b36dbf',
    500: '#8e27a3',
    950: '#000000',
  },
}
SCSS
$custom: #8e27a3;
$custom-light: #b36dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27a3",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 289.839,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48779,
    "c": 0.19864,
    "h": 320.2
  },
  "luminance": 0.09846
}

Semantic roles & 50–950 ramp

primary
#8E27A3
secondary
#74C164
accent
#E4435F
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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