#8F52C8#8F52C8

#8F52C8 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.4% C 0.180 H 305.2°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8F52C8
RGBrgb(143, 82, 200)
HSLhsl(271, 52%, 55%)
HSVhsv(271, 59%, 78%)
CMYKcmyk(28.5%, 59%, 0%, 21.6%)
CIE-LABlab(47.03, 47.67, -51.97)
CIE-LCHlch(47.03, 70.52, 312.53°)
OKLaboklab(56.37% 0.1035 -0.1468)
OKLCHoklch(56.37% 0.18 305.2)
XYZxyz(24.7681, 16.0445, 56.4245)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52C8 #8BC852
analogous
#5452C8 #8F52C8 #C852C6
triadic
#8F52C8 #C88F52 #52C88F
tetradic
#8F52C8 #C85452 #8BC852 #52C6C8
square
#8F52C8 #C85452 #8BC852 #52C6C8
split-complementary
#8F52C8 #C6C852 #52C854
monochromatic
#512779 #7035A8 #8F52C8 #AD80D7 #CBAFE6

Accessibility & contrast

On white

4.99
#8F52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8F52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52C8
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52C8#FFFFFF#000000##FFFFFF
##8F52C81.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D6ECC
Deuteranopia (green-blind)
#3A70C5
Tritanopia (blue-blind)
#856985
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8f52c8;
/* rgb */ color: rgb(143, 82, 200);
/* oklch */ color: oklch(56.4% 0.180 305.2);
Tailwind
colors: {
  custom: {
    50: '#b385d9',
    500: '#8f52c8',
    950: '#000000',
  },
}
SCSS
$custom: #8f52c8;
$custom-light: #b385d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52c8",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 271.017,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56373,
    "c": 0.17959,
    "h": 305.2
  },
  "luminance": 0.16044
}

Semantic roles & 50–950 ramp

primary
#8F52C8
secondary
#BAD4A2
accent
#DB4D91
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8F52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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