#8F51BF#8F51BF

#8F51BF is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.7% C 0.171 H 307.8°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8F51BF
RGBrgb(143, 81, 191)
HSLhsl(274, 46%, 53%)
HSVhsv(274, 58%, 75%)
CMYKcmyk(25.1%, 57.6%, 0%, 25.1%)
CIE-LABlab(46.29, 46.08, -47.94)
CIE-LCHlch(46.29, 66.50, 313.86°)
OKLaboklab(55.66% 0.1047 -0.135)
OKLCHoklch(55.66% 0.171 307.8)
XYZxyz(23.6722, 15.4864, 51.0222)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51BF #81BF51
analogous
#5851BF #8F51BF #BF51B8
triadic
#8F51BF #BF8F51 #51BF8F
tetradic
#8F51BF #BF5851 #81BF51 #51B8BF
square
#8F51BF #BF5851 #81BF51 #51B8BF
split-complementary
#8F51BF #B8BF51 #51BF58
monochromatic
#4F286D #70399A #8F51BF #AC7ECF #C9AAE0

Accessibility & contrast

On white

5.13
#8F51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8F51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51BF
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51BF#FFFFFF#000000##FFFFFF
##8F51BF1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296BC3
Deuteranopia (green-blind)
#416EBC
Tritanopia (blue-blind)
#886680
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8f51bf;
/* rgb */ color: rgb(143, 81, 191);
/* oklch */ color: oklch(55.7% 0.171 307.8);
Tailwind
colors: {
  custom: {
    50: '#b384d3',
    500: '#8f51bf',
    950: '#000000',
  },
}
SCSS
$custom: #8f51bf;
$custom-light: #b384d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51bf",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 273.818,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55658,
    "c": 0.17081,
    "h": 307.8
  },
  "luminance": 0.15486
}

Semantic roles & 50–950 ramp

primary
#8F51BF
secondary
#B3CE9E
accent
#D6528C
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8F51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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