#8F52CB#8F52CB

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

Color values

HEX#8F52CB
RGBrgb(143, 82, 203)
HSLhsl(270, 54%, 56%)
HSVhsv(270, 60%, 80%)
CMYKcmyk(29.6%, 59.6%, 0%, 20.4%)
CIE-LABlab(47.22, 48.39, -53.40)
CIE-LCHlch(47.22, 72.06, 312.18°)
OKLaboklab(56.57% 0.1035 -0.151)
OKLCHoklch(56.57% 0.183 304.4)
XYZxyz(25.1221, 16.1861, 58.2891)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52CB #8ECB52
analogous
#5252CB #8F52CB #CB52CA
triadic
#8F52CB #CB8F52 #52CB8F
tetradic
#8F52CB #CB5252 #8ECB52 #52CACB
square
#8F52CB #CB5252 #8ECB52 #52CACB
split-complementary
#8F52CB #CACB52 #52CB52
monochromatic
#52267D #7034AC #8F52CB #AD81D9 #CCB0E7

Accessibility & contrast

On white

4.96
#8F52CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8F52CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52CB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52CB#FFFFFF#000000##FFFFFF
##8F52CB1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176ECF
Deuteranopia (green-blind)
#3670C8
Tritanopia (blue-blind)
#846A87
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8f52cb;
/* rgb */ color: rgb(143, 82, 203);
/* oklch */ color: oklch(56.6% 0.183 304.4);
Tailwind
colors: {
  custom: {
    50: '#b385db',
    500: '#8f52cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f52cb;
$custom-light: #b385db;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52cb",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 270.248,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56567,
    "c": 0.18302,
    "h": 304.4
  },
  "luminance": 0.16186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8F52CB

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

Preview Lab → · Contrast checker → · Palette generator →

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