#8F27BA#8F27BA

#8F27BA is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.5% C 0.219 H 313.4°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8F27BA
RGBrgb(143, 39, 186)
HSLhsl(282, 65%, 44%)
HSVhsv(282, 79%, 73%)
CMYKcmyk(23.1%, 79%, 0%, 27.1%)
CIE-LABlab(39.30, 63.48, -56.26)
CIE-LCHlch(39.30, 84.83, 318.45°)
OKLaboklab(50.54% 0.1503 -0.1592)
OKLCHoklch(50.54% 0.219 313.4)
XYZxyz(20.9146, 10.8365, 47.4348)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27BA #52BA27
analogous
#4627BA #8F27BA #BA279C
triadic
#8F27BA #BA8F27 #27BA8F
tetradic
#8F27BA #BA4627 #52BA27 #279CBA
square
#8F27BA #BA4627 #52BA27 #279CBA
split-complementary
#8F27BA #9CBA27 #27BA46
monochromatic
#411255 #681C87 #8F27BA #AD46D8 #C479E3

Accessibility & contrast

On white

6.63
#8F27BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8F27BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F27BA
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27BA#FFFFFF#000000##FFFFFF
##8F27BA1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#135FB7
Tritanopia (blue-blind)
#8A4B71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8f27ba;
/* rgb */ color: rgb(143, 39, 186);
/* oklch */ color: oklch(50.5% 0.219 313.4);
Tailwind
colors: {
  custom: {
    50: '#b56ed0',
    500: '#8f27ba',
    950: '#000000',
  },
}
SCSS
$custom: #8f27ba;
$custom-light: #b56ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27ba",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 282.449,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50537,
    "c": 0.2189,
    "h": 313.4
  },
  "luminance": 0.10836
}

Semantic roles & 50–950 ramp

primary
#8F27BA
secondary
#8CCB72
accent
#E84071
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8F27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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