#8F52E2#8F52E2

#8F52E2 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.1% C 0.209 H 299.3°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#8F52E2
RGBrgb(143, 82, 226)
HSLhsl(265, 71%, 60%)
HSVhsv(265, 64%, 89%)
CMYKcmyk(36.7%, 63.7%, 0%, 11.4%)
CIE-LABlab(48.72, 54.02, -64.11)
CIE-LCHlch(48.72, 83.83, 310.12°)
OKLaboklab(58.13% 0.1022 -0.1824)
OKLCHoklch(58.13% 0.209 299.3)
XYZxyz(28.0690, 17.3649, 73.8097)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52E2 #A5E252
analogous
#525DE2 #8F52E2 #D752E2
triadic
#8F52E2 #E28F52 #52E28F
tetradic
#8F52E2 #E2525D #A5E252 #52E2D7
square
#8F52E2 #E2525D #A5E252 #52E2D7
split-complementary
#8F52E2 #E2D752 #5DE252
monochromatic
#531B9F #6E23D3 #8F52E2 #B186EB #D3BBF4

Accessibility & contrast

On white

4.69
#8F52E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8F52E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52E2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52E2#FFFFFF#000000##FFFFFF
##8F52E21.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E6
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#7C7293
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8f52e2;
/* rgb */ color: rgb(143, 82, 226);
/* oklch */ color: oklch(58.1% 0.209 299.3);
Tailwind
colors: {
  custom: {
    50: '#b586ec',
    500: '#8f52e2',
    950: '#000000',
  },
}
SCSS
$custom: #8f52e2;
$custom-light: #b586ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52e2",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 265.417,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58132,
    "c": 0.20914,
    "h": 299.3
  },
  "luminance": 0.17365
}

Semantic roles & 50–950 ramp

primary
#8F52E2
secondary
#CCE3AC
accent
#D31282
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F52E2

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

Preview Lab → · Contrast checker → · Palette generator →

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