#8F52D4#8F52D4

#8F52D4 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 57.2% C 0.193 H 302.3°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8F52D4
RGBrgb(143, 82, 212)
HSLhsl(268, 60%, 58%)
HSVhsv(268, 61%, 83%)
CMYKcmyk(32.5%, 61.3%, 0%, 16.9%)
CIE-LABlab(47.79, 50.57, -57.65)
CIE-LCHlch(47.79, 76.68, 311.26°)
OKLaboklab(57.16% 0.1032 -0.1635)
OKLCHoklch(57.16% 0.193 302.3)
XYZxyz(26.2259, 16.6276, 64.1024)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52D4 #97D452
analogous
#5256D4 #8F52D4 #D052D4
triadic
#8F52D4 #D48F52 #52D48F
tetradic
#8F52D4 #D45256 #97D452 #52D4D0
square
#8F52D4 #D45256 #97D452 #52D4D0
split-complementary
#8F52D4 #D4D052 #56D452
monochromatic
#532289 #702EBA #8F52D4 #AF83E0 #CEB4EC

Accessibility & contrast

On white

4.85
#8F52D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8F52D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52D4
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52D4#FFFFFF#000000##FFFFFF
##8F52D41.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#2A71D1
Tritanopia (blue-blind)
#816D8B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8f52d4;
/* rgb */ color: rgb(143, 82, 212);
/* oklch */ color: oklch(57.2% 0.193 302.3);
Tailwind
colors: {
  custom: {
    50: '#b486e2',
    500: '#8f52d4',
    950: '#000000',
  },
}
SCSS
$custom: #8f52d4;
$custom-light: #b486e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52d4",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 268.154,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57164,
    "c": 0.19329,
    "h": 302.3
  },
  "luminance": 0.16628
}

Semantic roles & 50–950 ramp

primary
#8F52D4
secondary
#C3DBA7
accent
#E34499
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #8F52D4

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

Preview Lab → · Contrast checker → · Palette generator →

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