#8F27A0#8F27A0

#8F27A0 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.197 H 321.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8F27A0
RGBrgb(143, 39, 160)
HSLhsl(292, 61%, 39%)
HSVhsv(292, 76%, 63%)
CMYKcmyk(10.6%, 75.6%, 0%, 37.3%)
CIE-LABlab(37.54, 58.48, -43.62)
CIE-LCHlch(37.54, 72.95, 323.28°)
OKLaboklab(48.73% 0.154 -0.1221)
OKLCHoklch(48.73% 0.197 321.6)
XYZxyz(18.3977, 9.8298, 34.1792)
Luminance0.0983 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27A0 #38A027
analogous
#5327A0 #8F27A0 #A02775
triadic
#8F27A0 #A08F27 #27A08F
tetradic
#8F27A0 #A05327 #38A027 #2775A0
square
#8F27A0 #A05327 #38A027 #2775A0
split-complementary
#8F27A0 #75A027 #27A053
monochromatic
#370F3E #631B6F #8F27A0 #B936CE #CA67DA

Accessibility & contrast

On white

7.08
#8F27A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8F27A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F27A0
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27A0#FFFFFF#000000##FFFFFF
##8F27A01.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A3
Deuteranopia (green-blind)
#375C9D
Tritanopia (blue-blind)
#903F62
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8f27a0;
/* rgb */ color: rgb(143, 39, 160);
/* oklch */ color: oklch(48.7% 0.197 321.6);
Tailwind
colors: {
  custom: {
    50: '#b46dbd',
    500: '#8f27a0',
    950: '#000000',
  },
}
SCSS
$custom: #8f27a0;
$custom-light: #b46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27a0",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 291.57,
    "s": 60.804,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48727,
    "c": 0.19651,
    "h": 321.6
  },
  "luminance": 0.09829
}

Semantic roles & 50–950 ramp

primary
#8F27A0
secondary
#70C063
accent
#E4445A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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