#8F51BC#8F51BC

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

Color values

HEX#8F51BC
RGBrgb(143, 81, 188)
HSLhsl(275, 44%, 53%)
HSVhsv(275, 57%, 74%)
CMYKcmyk(23.9%, 56.9%, 0%, 26.3%)
CIE-LABlab(46.12, 45.38, -46.48)
CIE-LCHlch(46.12, 64.96, 314.32°)
OKLaboklab(55.47% 0.1046 -0.1307)
OKLCHoklch(55.47% 0.167 308.7)
XYZxyz(23.3454, 15.3557, 49.3013)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51BC #7EBC51
analogous
#5951BC #8F51BC #BC51B4
triadic
#8F51BC #BC8F51 #51BC8F
tetradic
#8F51BC #BC5951 #7EBC51 #51B4BC
square
#8F51BC #BC5951 #7EBC51 #51B4BC
split-complementary
#8F51BC #B4BC51 #51BC59
monochromatic
#4E296A #6F3A96 #8F51BC #AB7DCD #C8A9DE

Accessibility & contrast

On white

5.16
#8F51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8F51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51BC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51BC#FFFFFF#000000##FFFFFF
##8F51BC1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6BBF
Deuteranopia (green-blind)
#446EB9
Tritanopia (blue-blind)
#89657F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8f51bc;
/* rgb */ color: rgb(143, 81, 188);
/* oklch */ color: oklch(55.5% 0.167 308.7);
Tailwind
colors: {
  custom: {
    50: '#b384d1',
    500: '#8f51bc',
    950: '#000000',
  },
}
SCSS
$custom: #8f51bc;
$custom-light: #b384d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51bc",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 274.766,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55473,
    "c": 0.16741,
    "h": 308.7
  },
  "luminance": 0.15355
}

Semantic roles & 50–950 ramp

primary
#8F51BC
secondary
#B1CC9D
accent
#D4548A
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8F51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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