#8F52DB#8F52DB

#8F52DB is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.6% C 0.201 H 300.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8F52DB
RGBrgb(143, 82, 219)
HSLhsl(267, 66%, 59%)
HSVhsv(267, 63%, 86%)
CMYKcmyk(34.7%, 62.6%, 0%, 14.1%)
CIE-LABlab(48.25, 52.28, -60.90)
CIE-LCHlch(48.25, 80.26, 310.65°)
OKLaboklab(57.64% 0.1028 -0.173)
OKLCHoklch(57.64% 0.201 300.7)
XYZxyz(27.1281, 16.9885, 68.8540)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52DB #9EDB52
analogous
#525ADB #8F52DB #D352DB
triadic
#8F52DB #DB8F52 #52DB8F
tetradic
#8F52DB #DB525A #9EDB52 #52DBD3
square
#8F52DB #DB525A #9EDB52 #52DBD3
split-complementary
#8F52DB #DBD352 #5ADB52
monochromatic
#531F94 #6F29C6 #8F52DB #B085E6 #D1B7F0

Accessibility & contrast

On white

4.78
#8F52DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8F52DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52DB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52DB#FFFFFF#000000##FFFFFF
##8F52DB1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#1D72D8
Tritanopia (blue-blind)
#7F708F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8f52db;
/* rgb */ color: rgb(143, 82, 219);
/* oklch */ color: oklch(57.6% 0.201 300.7);
Tailwind
colors: {
  custom: {
    50: '#b586e7',
    500: '#8f52db',
    950: '#000000',
  },
}
SCSS
$custom: #8f52db;
$custom-light: #b586e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52db",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 266.715,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57642,
    "c": 0.20123,
    "h": 300.7
  },
  "luminance": 0.16989
}

Semantic roles & 50–950 ramp

primary
#8F52DB
secondary
#C7DFAA
accent
#E93F9D
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8F52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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