#8F27C6#8F27C6

#8F27C6 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.4% C 0.229 H 310.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8F27C6
RGBrgb(143, 39, 198)
HSLhsl(279, 67%, 46%)
HSVhsv(279, 80%, 78%)
CMYKcmyk(27.8%, 80.3%, 0%, 22.4%)
CIE-LABlab(40.19, 65.91, -61.85)
CIE-LCHlch(40.19, 90.39, 316.82°)
OKLaboklab(51.44% 0.1477 -0.1756)
OKLCHoklch(51.44% 0.229 310.1)
XYZxyz(22.2442, 11.3684, 54.4376)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F27C6 #5EC627
analogous
#3F27C6 #8F27C6 #C627AE
triadic
#8F27C6 #C68F27 #27C68F
tetradic
#8F27C6 #C63F27 #5EC627 #27AEC6
square
#8F27C6 #C63F27 #5EC627 #27AEC6
split-complementary
#8F27C6 #AEC627 #27C63F
monochromatic
#451360 #6A1D93 #8F27C6 #AB4EDC #C381E6

Accessibility & contrast

On white

6.41
#8F27C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8F27C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F27C6
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F27C6#FFFFFF#000000##FFFFFF
##8F27C61.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#875078
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8f27c6;
/* rgb */ color: rgb(143, 39, 198);
/* oklch */ color: oklch(51.4% 0.229 310.1);
Tailwind
colors: {
  custom: {
    50: '#b56fd8',
    500: '#8f27c6',
    950: '#000000',
  },
}
SCSS
$custom: #8f27c6;
$custom-light: #b56fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8f27c6",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 198
  },
  "hsl": {
    "h": 279.245,
    "s": 67.089,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51439,
    "c": 0.22943,
    "h": 310.1
  },
  "luminance": 0.11368
}

Semantic roles & 50–950 ramp

primary
#8F27C6
secondary
#97CF7A
accent
#EA3E79
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120815
muted
#817B83

Preview Lab

Preview with #8F27C6

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

Preview Lab → · Contrast checker → · Palette generator →

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