#8F52BA#8F52BA

#8F52BA is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.5% C 0.164 H 309.1°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8F52BA
RGBrgb(143, 82, 186)
HSLhsl(275, 43%, 53%)
HSVhsv(275, 56%, 73%)
CMYKcmyk(23.1%, 55.9%, 0%, 27.1%)
CIE-LABlab(46.20, 44.39, -45.18)
CIE-LCHlch(46.20, 63.33, 314.49°)
OKLaboklab(55.5% 0.1032 -0.1269)
OKLCHoklch(55.5% 0.164 309.1)
XYZxyz(23.2062, 15.4198, 48.1987)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52BA #7DBA52
analogous
#5B52BA #8F52BA #BA52B1
triadic
#8F52BA #BA8F52 #52BA8F
tetradic
#8F52BA #BA5B52 #7DBA52 #52B1BA
square
#8F52BA #BA5B52 #7DBA52 #52B1BA
split-complementary
#8F52BA #B1BA52 #52BA5B
monochromatic
#4E2A68 #6F3B94 #8F52BA #AB7ECB #C8AADD

Accessibility & contrast

On white

5.14
#8F52BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8F52BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52BA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52BA#FFFFFF#000000##FFFFFF
##8F52BA1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306BBD
Deuteranopia (green-blind)
#466EB7
Tritanopia (blue-blind)
#89657E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8f52ba;
/* rgb */ color: rgb(143, 82, 186);
/* oklch */ color: oklch(55.5% 0.164 309.1);
Tailwind
colors: {
  custom: {
    50: '#b285cf',
    500: '#8f52ba',
    950: '#000000',
  },
}
SCSS
$custom: #8f52ba;
$custom-light: #b285cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52ba",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 275.192,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55499,
    "c": 0.16357,
    "h": 309.1
  },
  "luminance": 0.15419
}

Semantic roles & 50–950 ramp

primary
#8F52BA
secondary
#B0CA9D
accent
#D35589
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8F52BA

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

Preview Lab → · Contrast checker → · Palette generator →

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