#8F27A2#8F27A2

#8F27A2 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.198 H 320.9°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8F27A2
RGBrgb(143, 39, 162)
HSLhsl(291, 61%, 39%)
HSVhsv(291, 76%, 64%)
CMYKcmyk(11.7%, 75.9%, 0%, 36.5%)
CIE-LABlab(37.66, 58.85, -44.62)
CIE-LCHlch(37.66, 73.85, 322.83°)
OKLaboklab(48.86% 0.1538 -0.125)
OKLCHoklch(48.86% 0.198 320.9)
XYZxyz(18.5740, 9.9003, 35.1080)
Luminance0.0990 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27A2 #3AA227
analogous
#5227A2 #8F27A2 #A22778
triadic
#8F27A2 #A28F27 #27A28F
tetradic
#8F27A2 #A25227 #3AA227 #2778A2
square
#8F27A2 #A25227 #3AA227 #2778A2
split-complementary
#8F27A2 #78A227 #27A252
monochromatic
#380F3F #631B71 #8F27A2 #B737CF #C969DB

Accessibility & contrast

On white

7.05
#8F27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8F27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F27A2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27A2#FFFFFF#000000##FFFFFF
##8F27A21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#355C9F
Tritanopia (blue-blind)
#904063
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f27a2;
/* rgb */ color: rgb(143, 39, 162);
/* oklch */ color: oklch(48.9% 0.198 320.9);
Tailwind
colors: {
  custom: {
    50: '#b46dbe',
    500: '#8f27a2',
    950: '#000000',
  },
}
SCSS
$custom: #8f27a2;
$custom-light: #b46dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27a2",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 290.732,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48858,
    "c": 0.1982,
    "h": 320.9
  },
  "luminance": 0.09899
}

Semantic roles & 50–950 ramp

primary
#8F27A2
secondary
#72C164
accent
#E4435C
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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