#8F27B6#8F27B6

#8F27B6 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.2% C 0.215 H 314.5°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8F27B6
RGBrgb(143, 39, 182)
HSLhsl(284, 65%, 43%)
HSVhsv(284, 79%, 71%)
CMYKcmyk(21.4%, 78.6%, 0%, 28.6%)
CIE-LABlab(39.02, 62.69, -54.37)
CIE-LCHlch(39.02, 82.98, 319.07°)
OKLaboklab(50.25% 0.151 -0.1536)
OKLCHoklch(50.25% 0.215 314.5)
XYZxyz(20.4953, 10.6688, 45.2266)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27B6 #4EB627
analogous
#4727B6 #8F27B6 #B62795
triadic
#8F27B6 #B68F27 #27B68F
tetradic
#8F27B6 #B64727 #4EB627 #2795B6
square
#8F27B6 #B64727 #4EB627 #2795B6
split-complementary
#8F27B6 #95B627 #27B647
monochromatic
#401151 #671C84 #8F27B6 #AF43D7 #C476E2

Accessibility & contrast

On white

6.70
#8F27B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8F27B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F27B6
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27B6#FFFFFF#000000##FFFFFF
##8F27B61.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#1C5EB3
Tritanopia (blue-blind)
#8B496F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f27b6;
/* rgb */ color: rgb(143, 39, 182);
/* oklch */ color: oklch(50.2% 0.215 314.5);
Tailwind
colors: {
  custom: {
    50: '#b46ecd',
    500: '#8f27b6',
    950: '#000000',
  },
}
SCSS
$custom: #8f27b6;
$custom-light: #b46ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27b6",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 283.636,
    "s": 64.706,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50245,
    "c": 0.21541,
    "h": 314.5
  },
  "luminance": 0.10668
}

Semantic roles & 50–950 ramp

primary
#8F27B6
secondary
#88C970
accent
#E8406E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120813
muted
#817B82

Preview Lab

Preview with #8F27B6

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

Preview Lab → · Contrast checker → · Palette generator →

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