#8F52CC#8F52CC

#8F52CC is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.6% C 0.184 H 304.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8F52CC
RGBrgb(143, 82, 204)
HSLhsl(270, 54%, 56%)
HSVhsv(270, 60%, 80%)
CMYKcmyk(29.9%, 59.8%, 0%, 20%)
CIE-LABlab(47.28, 48.63, -53.87)
CIE-LCHlch(47.28, 72.58, 312.07°)
OKLaboklab(56.63% 0.1034 -0.1524)
OKLCHoklch(56.63% 0.184 304.2)
XYZxyz(25.2416, 16.2339, 58.9187)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52CC #8FCC52
analogous
#5252CC #8F52CC #CC52CC
triadic
#8F52CC #CC8F52 #52CC8F
tetradic
#8F52CC #CC5252 #8FCC52 #52CCCC
square
#8F52CC #CC5252 #8FCC52 #52CCCC
split-complementary
#8F52CC #CCCC52 #52CC52
monochromatic
#52257E #7033AE #8F52CC #AE81DA #CCB1E8

Accessibility & contrast

On white

4.94
#8F52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8F52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52CC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52CC#FFFFFF#000000##FFFFFF
##8F52CC1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146FD0
Deuteranopia (green-blind)
#3570C9
Tritanopia (blue-blind)
#846B87
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8f52cc;
/* rgb */ color: rgb(143, 82, 204);
/* oklch */ color: oklch(56.6% 0.184 304.2);
Tailwind
colors: {
  custom: {
    50: '#b485dc',
    500: '#8f52cc',
    950: '#000000',
  },
}
SCSS
$custom: #8f52cc;
$custom-light: #b485dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52cc",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 270,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56632,
    "c": 0.18417,
    "h": 304.2
  },
  "luminance": 0.16234
}

Semantic roles & 50–950 ramp

primary
#8F52CC
secondary
#BDD6A4
accent
#DE4A94
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8F52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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