#8D27B3#8D27B3

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

Color values

HEX#8D27B3
RGBrgb(141, 39, 179)
HSLhsl(284, 64%, 43%)
HSVhsv(284, 78%, 70%)
CMYKcmyk(21.2%, 78.2%, 0%, 29.8%)
CIE-LABlab(38.50, 61.73, -53.45)
CIE-LCHlch(38.50, 81.65, 319.11°)
OKLaboklab(49.75% 0.149 -0.151)
OKLCHoklch(49.75% 0.212 314.6)
XYZxyz(19.8453, 10.3691, 43.5952)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D27B3 #4DB327
analogous
#4727B3 #8D27B3 #B32793
triadic
#8D27B3 #B38D27 #27B38D
tetradic
#8D27B3 #B34727 #4DB327 #2793B3
square
#8D27B3 #B34727 #4DB327 #2793B3
split-complementary
#8D27B3 #93B327 #27B347
monochromatic
#3E114E #651C81 #8D27B3 #AD41D6 #C374E1

Accessibility & contrast

On white

6.83
#8D27B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8D27B3
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D27B3#FFFFFF#000000##FFFFFF
##8D27B31.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#1D5DB0
Tritanopia (blue-blind)
#8A486D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8d27b3;
/* rgb */ color: rgb(141, 39, 179);
/* oklch */ color: oklch(49.8% 0.212 314.6);
Tailwind
colors: {
  custom: {
    50: '#b36dcb',
    500: '#8d27b3',
    950: '#000000',
  },
}
SCSS
$custom: #8d27b3;
$custom-light: #b36dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d27b3",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 283.714,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4975,
    "c": 0.21214,
    "h": 314.6
  },
  "luminance": 0.10368
}

Semantic roles & 50–950 ramp

primary
#8D27B3
secondary
#86C86E
accent
#E7416E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8D27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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