#8E51BB#8E51BB

#8E51BB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.3% C 0.166 H 308.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8E51BB
RGBrgb(142, 81, 187)
HSLhsl(275, 44%, 53%)
HSVhsv(275, 57%, 73%)
CMYKcmyk(24.1%, 56.7%, 0%, 26.7%)
CIE-LABlab(45.94, 44.89, -46.19)
CIE-LCHlch(45.94, 64.41, 314.19°)
OKLaboklab(55.3% 0.1033 -0.1299)
OKLCHoklch(55.3% 0.166 308.5)
XYZxyz(23.0656, 15.2238, 48.7275)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51BB #7EBB51
analogous
#5951BB #8E51BB #BB51B3
triadic
#8E51BB #BB8E51 #51BB8E
tetradic
#8E51BB #BB5951 #7EBB51 #51B3BB
square
#8E51BB #BB5951 #7EBB51 #51B3BB
split-complementary
#8E51BB #B3BB51 #51BB59
monochromatic
#4E2969 #6E3A95 #8E51BB #AB7DCC #C7A9DD

Accessibility & contrast

On white

5.19
#8E51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8E51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51BB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51BB#FFFFFF#000000##FFFFFF
##8E51BB1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e51bb;
/* rgb */ color: rgb(142, 81, 187);
/* oklch */ color: oklch(55.3% 0.166 308.5);
Tailwind
colors: {
  custom: {
    50: '#b284d0',
    500: '#8e51bb',
    950: '#000000',
  },
}
SCSS
$custom: #8e51bb;
$custom-light: #b284d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51bb",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 274.528,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55297,
    "c": 0.16594,
    "h": 308.5
  },
  "luminance": 0.15223
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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