#8F52E5#8F52E5

#8F52E5 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.3% C 0.213 H 298.7°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8F52E5
RGBrgb(143, 82, 229)
HSLhsl(265, 74%, 61%)
HSVhsv(265, 64%, 90%)
CMYKcmyk(37.6%, 64.2%, 0%, 10.2%)
CIE-LABlab(48.92, 54.76, -65.47)
CIE-LCHlch(48.92, 85.36, 309.91°)
OKLaboklab(58.35% 0.102 -0.1865)
OKLCHoklch(58.35% 0.213 298.7)
XYZxyz(28.4843, 17.5310, 75.9967)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52E5 #A8E552
analogous
#525EE5 #8F52E5 #D852E5
triadic
#8F52E5 #E58F52 #52E58F
tetradic
#8F52E5 #E5525E #A8E552 #52E5D8
square
#8F52E5 #E5525E #A8E552 #52E5D8
split-complementary
#8F52E5 #E5D852 #5EE552
monochromatic
#5219A4 #6D21D9 #8F52E5 #B187ED #D4BCF5

Accessibility & contrast

On white

4.66
#8F52E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#8F52E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52E5
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52E5#FFFFFF#000000##FFFFFF
##8F52E51.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EA
Deuteranopia (green-blind)
#0073E2
Tritanopia (blue-blind)
#7B7394
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8f52e5;
/* rgb */ color: rgb(143, 82, 229);
/* oklch */ color: oklch(58.3% 0.213 298.7);
Tailwind
colors: {
  custom: {
    50: '#b586ee',
    500: '#8f52e5',
    950: '#000000',
  },
}
SCSS
$custom: #8f52e5;
$custom-light: #b586ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52e5",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 264.898,
    "s": 73.869,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58345,
    "c": 0.21252,
    "h": 298.7
  },
  "luminance": 0.17531
}

Semantic roles & 50–950 ramp

primary
#8F52E5
secondary
#CEE5AE
accent
#D61084
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F52E5

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

Preview Lab → · Contrast checker → · Palette generator →

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