#8B27A4#8B27A4

#8B27A4 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.4% C 0.198 H 318.6°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#8B27A4
RGBrgb(139, 39, 164)
HSLhsl(288, 62%, 40%)
HSVhsv(288, 76%, 64%)
CMYKcmyk(15.2%, 76.2%, 0%, 35.7%)
CIE-LABlab(37.15, 58.41, -46.68)
CIE-LCHlch(37.15, 74.77, 321.37°)
OKLaboklab(48.41% 0.1488 -0.1312)
OKLCHoklch(48.41% 0.198 318.6)
XYZxyz(18.0729, 9.6212, 36.0199)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B27A4 #40A427
analogous
#4D27A4 #8B27A4 #A4277F
triadic
#8B27A4 #A48B27 #27A48B
tetradic
#8B27A4 #A44D27 #40A427 #277FA4
square
#8B27A4 #A44D27 #40A427 #277FA4
split-complementary
#8B27A4 #7FA427 #27A44D
monochromatic
#370F41 #611B73 #8B27A4 #B238D0 #C56ADC

Accessibility & contrast

On white

7.18
#8B27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8B27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B27A4
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B27A4#FFFFFF#000000##FFFFFF
##8B27A41.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2E5BA1
Tritanopia (blue-blind)
#8B4164
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b27a4;
/* rgb */ color: rgb(139, 39, 164);
/* oklch */ color: oklch(48.4% 0.198 318.6);
Tailwind
colors: {
  custom: {
    50: '#b16cc0',
    500: '#8b27a4',
    950: '#000000',
  },
}
SCSS
$custom: #8b27a4;
$custom-light: #b16cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b27a4",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 288,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48412,
    "c": 0.19832,
    "h": 318.6
  },
  "luminance": 0.0962
}

Semantic roles & 50–950 ramp

primary
#8B27A4
secondary
#78C265
accent
#E54363
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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