#8F52BE#8F52BE

#8F52BE is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.7% C 0.168 H 307.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8F52BE
RGBrgb(143, 82, 190)
HSLhsl(274, 45%, 53%)
HSVhsv(274, 57%, 75%)
CMYKcmyk(24.7%, 56.8%, 0%, 25.5%)
CIE-LABlab(46.43, 45.31, -47.14)
CIE-LCHlch(46.43, 65.38, 313.87°)
OKLaboklab(55.74% 0.1034 -0.1326)
OKLCHoklch(55.74% 0.168 307.9)
XYZxyz(23.6374, 15.5922, 50.4696)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F52BE #81BE52
analogous
#5952BE #8F52BE #BE52B7
triadic
#8F52BE #BE8F52 #52BE8F
tetradic
#8F52BE #BE5952 #81BE52 #52B7BE
square
#8F52BE #BE5952 #81BE52 #52B7BE
split-complementary
#8F52BE #B7BE52 #52BE59
monochromatic
#4F296D #703A99 #8F52BE #AC7ECF #C9ABDF

Accessibility & contrast

On white

5.10
#8F52BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8F52BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F52BE
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F52BE#FFFFFF#000000##FFFFFF
##8F52BE1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6CC2
Deuteranopia (green-blind)
#436FBB
Tritanopia (blue-blind)
#886680
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8f52be;
/* rgb */ color: rgb(143, 82, 190);
/* oklch */ color: oklch(55.7% 0.168 307.9);
Tailwind
colors: {
  custom: {
    50: '#b385d2',
    500: '#8f52be',
    950: '#000000',
  },
}
SCSS
$custom: #8f52be;
$custom-light: #b385d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f52be",
  "rgb": {
    "r": 143,
    "g": 82,
    "b": 190
  },
  "hsl": {
    "h": 273.889,
    "s": 45.378,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55743,
    "c": 0.16815,
    "h": 307.9
  },
  "luminance": 0.15592
}

Semantic roles & 50–950 ramp

primary
#8F52BE
secondary
#B3CD9F
accent
#D5538B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8F52BE

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

Preview Lab → · Contrast checker → · Palette generator →

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