#8F27A4#8F27A4

#8F27A4 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.200 H 320.2°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8F27A4
RGBrgb(143, 39, 164)
HSLhsl(290, 62%, 40%)
HSVhsv(290, 76%, 64%)
CMYKcmyk(12.8%, 76.2%, 0%, 35.7%)
CIE-LABlab(37.79, 59.22, -45.62)
CIE-LCHlch(37.79, 74.75, 322.39°)
OKLaboklab(48.99% 0.1536 -0.1279)
OKLCHoklch(48.99% 0.2 320.2)
XYZxyz(18.7532, 9.9720, 36.0518)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27A4 #3CA427
analogous
#5127A4 #8F27A4 #A4277B
triadic
#8F27A4 #A48F27 #27A48F
tetradic
#8F27A4 #A45127 #3CA427 #277BA4
square
#8F27A4 #A45127 #3CA427 #277BA4
split-complementary
#8F27A4 #7BA427 #27A451
monochromatic
#390F41 #641B73 #8F27A4 #B638D0 #C86ADC

Accessibility & contrast

On white

7.01
#8F27A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8F27A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F27A4
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27A4#FFFFFF#000000##FFFFFF
##8F27A41.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#345CA1
Tritanopia (blue-blind)
#904164
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8f27a4;
/* rgb */ color: rgb(143, 39, 164);
/* oklch */ color: oklch(49.0% 0.200 320.2);
Tailwind
colors: {
  custom: {
    50: '#b46dc0',
    500: '#8f27a4',
    950: '#000000',
  },
}
SCSS
$custom: #8f27a4;
$custom-light: #b46dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27a4",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 289.92,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48991,
    "c": 0.19991,
    "h": 320.2
  },
  "luminance": 0.09971
}

Semantic roles & 50–950 ramp

primary
#8F27A4
secondary
#75C265
accent
#E5435E
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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