#8F52D8#8F52D8

#8F52D8 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.4% C 0.198 H 301.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8F52D8
RGBrgb(143, 82, 216)
HSLhsl(267, 63%, 58%)
HSVhsv(267, 62%, 85%)
CMYKcmyk(33.8%, 62%, 0%, 15.3%)
CIE-LABlab(48.05, 51.54, -59.51)
CIE-LCHlch(48.05, 78.73, 310.90°)
OKLaboklab(57.44% 0.103 -0.1689)
OKLCHoklch(57.44% 0.198 301.4)
XYZxyz(26.7367, 16.8320, 66.7927)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52D8 #9BD852
analogous
#5258D8 #8F52D8 #D252D8
triadic
#8F52D8 #D88F52 #52D88F
tetradic
#8F52D8 #D85258 #9BD852 #52D8D2
square
#8F52D8 #D85258 #9BD852 #52D8D2
split-complementary
#8F52D8 #D8D252 #58D852
monochromatic
#53208F #702CC1 #8F52D8 #AF84E3 #D0B6EF

Accessibility & contrast

On white

4.81
#8F52D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#8F52D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52D8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52D8#FFFFFF#000000##FFFFFF
##8F52D81.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DC
Deuteranopia (green-blind)
#2371D5
Tritanopia (blue-blind)
#806F8D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8f52d8;
/* rgb */ color: rgb(143, 82, 216);
/* oklch */ color: oklch(57.4% 0.198 301.4);
Tailwind
colors: {
  custom: {
    50: '#b486e5',
    500: '#8f52d8',
    950: '#000000',
  },
}
SCSS
$custom: #8f52d8;
$custom-light: #b486e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52d8",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 267.313,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57435,
    "c": 0.19783,
    "h": 301.4
  },
  "luminance": 0.16832
}

Semantic roles & 50–950 ramp

primary
#8F52D8
secondary
#C5DDA8
accent
#E6429B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F52D8

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

Preview Lab → · Contrast checker → · Palette generator →

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