#8F52CA#8F52CA

#8F52CA is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.5% C 0.182 H 304.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8F52CA
RGBrgb(143, 82, 202)
HSLhsl(271, 53%, 56%)
HSVhsv(271, 59%, 79%)
CMYKcmyk(29.2%, 59.4%, 0%, 20.8%)
CIE-LABlab(47.16, 48.15, -52.92)
CIE-LCHlch(47.16, 71.55, 312.30°)
OKLaboklab(56.5% 0.1035 -0.1496)
OKLCHoklch(56.5% 0.182 304.7)
XYZxyz(25.0033, 16.1386, 57.6635)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52CA #8DCA52
analogous
#5352CA #8F52CA #CA52C9
triadic
#8F52CA #CA8F52 #52CA8F
tetradic
#8F52CA #CA5352 #8DCA52 #52C9CA
square
#8F52CA #CA5352 #8DCA52 #52C9CA
split-complementary
#8F52CA #C9CA52 #52CA53
monochromatic
#52267C #7034AB #8F52CA #AD81D8 #CCB0E7

Accessibility & contrast

On white

4.97
#8F52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8F52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52CA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52CA#FFFFFF#000000##FFFFFF
##8F52CA1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196ECE
Deuteranopia (green-blind)
#3770C7
Tritanopia (blue-blind)
#856A86
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8f52ca;
/* rgb */ color: rgb(143, 82, 202);
/* oklch */ color: oklch(56.5% 0.182 304.7);
Tailwind
colors: {
  custom: {
    50: '#b385db',
    500: '#8f52ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f52ca;
$custom-light: #b385db;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52ca",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 270.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56502,
    "c": 0.18189,
    "h": 304.7
  },
  "luminance": 0.16138
}

Semantic roles & 50–950 ramp

primary
#8F52CA
secondary
#BBD5A3
accent
#DD4B93
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8F52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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