#8D27B2#8D27B2

#8D27B2 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.7% C 0.211 H 314.9°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#8D27B2
RGBrgb(141, 39, 178)
HSLhsl(284, 64%, 43%)
HSVhsv(284, 78%, 70%)
CMYKcmyk(20.8%, 78.1%, 0%, 30.2%)
CIE-LABlab(38.43, 61.53, -52.97)
CIE-LCHlch(38.43, 81.19, 319.27°)
OKLaboklab(49.68% 0.1492 -0.1495)
OKLCHoklch(49.68% 0.211 314.9)
XYZxyz(19.7446, 10.3288, 43.0644)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27B2 #4CB227
analogous
#4827B2 #8D27B2 #B22791
triadic
#8D27B2 #B28D27 #27B28D
tetradic
#8D27B2 #B24827 #4CB227 #2791B2
square
#8D27B2 #B24827 #4CB227 #2791B2
split-complementary
#8D27B2 #91B227 #27B248
monochromatic
#3D114E #651C80 #8D27B2 #AE41D5 #C373E0

Accessibility & contrast

On white

6.85
#8D27B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8D27B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D27B2
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27B2#FFFFFF#000000##FFFFFF
##8D27B21.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#1F5DAF
Tritanopia (blue-blind)
#8A476C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8d27b2;
/* rgb */ color: rgb(141, 39, 178);
/* oklch */ color: oklch(49.7% 0.211 314.9);
Tailwind
colors: {
  custom: {
    50: '#b36dca',
    500: '#8d27b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d27b2;
$custom-light: #b36dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27b2",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 284.029,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49678,
    "c": 0.21126,
    "h": 314.9
  },
  "luminance": 0.10328
}

Semantic roles & 50–950 ramp

primary
#8D27B2
secondary
#85C86D
accent
#E7416D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8D27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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