#8F52D6#8F52D6

#8F52D6 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 57.3% C 0.196 H 301.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8F52D6
RGBrgb(143, 82, 214)
HSLhsl(268, 62%, 58%)
HSVhsv(268, 62%, 84%)
CMYKcmyk(33.2%, 61.7%, 0%, 16.1%)
CIE-LABlab(47.92, 51.05, -58.58)
CIE-LCHlch(47.92, 77.70, 311.07°)
OKLaboklab(57.3% 0.1031 -0.1662)
OKLCHoklch(57.3% 0.196 301.8)
XYZxyz(26.4797, 16.7292, 65.4393)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52D6 #99D652
analogous
#5257D6 #8F52D6 #D152D6
triadic
#8F52D6 #D68F52 #52D68F
tetradic
#8F52D6 #D65257 #99D652 #52D6D1
square
#8F52D6 #D65257 #99D652 #52D6D1
split-complementary
#8F52D6 #D6D152 #57D652
monochromatic
#53218C #702DBE #8F52D6 #AF83E2 #CFB5ED

Accessibility & contrast

On white

4.83
#8F52D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8F52D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52D6
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52D6#FFFFFF#000000##FFFFFF
##8F52D61.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DA
Deuteranopia (green-blind)
#2771D3
Tritanopia (blue-blind)
#816E8C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8f52d6;
/* rgb */ color: rgb(143, 82, 214);
/* oklch */ color: oklch(57.3% 0.196 301.8);
Tailwind
colors: {
  custom: {
    50: '#b486e3',
    500: '#8f52d6',
    950: '#000000',
  },
}
SCSS
$custom: #8f52d6;
$custom-light: #b486e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52d6",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 214
  },
  "hsl": {
    "h": 267.727,
    "s": 61.682,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57299,
    "c": 0.19557,
    "h": 301.8
  },
  "luminance": 0.16729
}

Semantic roles & 50–950 ramp

primary
#8F52D6
secondary
#C4DCA8
accent
#E5439A
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F52D6

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

Preview Lab → · Contrast checker → · Palette generator →

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