#8F51BB#8F51BB

#8F51BB is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.4% C 0.166 H 309.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8F51BB
RGBrgb(143, 81, 187)
HSLhsl(275, 44%, 53%)
HSVhsv(275, 57%, 73%)
CMYKcmyk(23.5%, 56.7%, 0%, 26.7%)
CIE-LABlab(46.06, 45.15, -45.99)
CIE-LCHlch(46.06, 64.45, 314.47°)
OKLaboklab(55.41% 0.1046 -0.1293)
OKLCHoklch(55.41% 0.166 309)
XYZxyz(23.2380, 15.3127, 48.7355)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F51BB #7DBB51
analogous
#5A51BB #8F51BB #BB51B2
triadic
#8F51BB #BB8F51 #51BB8F
tetradic
#8F51BB #BB5A51 #7DBB51 #51B2BB
square
#8F51BB #BB5A51 #7DBB51 #51B2BB
split-complementary
#8F51BB #B2BB51 #51BB5A
monochromatic
#4E2969 #6F3A95 #8F51BB #AB7DCC #C8A9DD

Accessibility & contrast

On white

5.17
#8F51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8F51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F51BB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F51BB#FFFFFF#000000##FFFFFF
##8F51BB1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#446EB8
Tritanopia (blue-blind)
#89647E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8f51bb;
/* rgb */ color: rgb(143, 81, 187);
/* oklch */ color: oklch(55.4% 0.166 309.0);
Tailwind
colors: {
  custom: {
    50: '#b384d0',
    500: '#8f51bb',
    950: '#000000',
  },
}
SCSS
$custom: #8f51bb;
$custom-light: #b384d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f51bb",
  "rgb": {
    "r": 143,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 275.094,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55411,
    "c": 0.16627,
    "h": 309
  },
  "luminance": 0.15312
}

Semantic roles & 50–950 ramp

primary
#8F51BB
secondary
#B0CB9D
accent
#D45489
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8F51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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