#8E54BB#8E54BB

#8E54BB is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.7% C 0.161 H 308.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8E54BB
RGBrgb(142, 84, 187)
HSLhsl(274, 43%, 53%)
HSVhsv(274, 55%, 73%)
CMYKcmyk(24.1%, 55.1%, 0%, 26.7%)
CIE-LABlab(46.55, 43.28, -45.21)
CIE-LCHlch(46.55, 62.59, 313.75°)
OKLaboklab(55.75% 0.0993 -0.127)
OKLCHoklch(55.75% 0.161 308)
XYZxyz(23.2935, 15.6796, 48.8034)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E54BB #81BB54
analogous
#5A54BB #8E54BB #BB54B5
triadic
#8E54BB #BB8E54 #54BB8E
tetradic
#8E54BB #BB5A54 #81BB54 #54B5BB
square
#8E54BB #BB5A54 #81BB54 #54B5BB
split-complementary
#8E54BB #B5BB54 #54BB5A
monochromatic
#4E2A6A #6F3C96 #8E54BB #AB80CC #C8ACDE

Accessibility & contrast

On white

5.08
#8E54BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8E54BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E54BB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E54BB#FFFFFF#000000##FFFFFF
##8E54BB1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336CBE
Deuteranopia (green-blind)
#476FB8
Tritanopia (blue-blind)
#87677F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8e54bb;
/* rgb */ color: rgb(142, 84, 187);
/* oklch */ color: oklch(55.7% 0.161 308.0);
Tailwind
colors: {
  custom: {
    50: '#b286d0',
    500: '#8e54bb',
    950: '#000000',
  },
}
SCSS
$custom: #8e54bb;
$custom-light: #b286d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e54bb",
  "rgb": {
    "r": 142,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 273.786,
    "s": 43.096,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55746,
    "c": 0.16126,
    "h": 308
  },
  "luminance": 0.15679
}

Semantic roles & 50–950 ramp

primary
#8E54BB
secondary
#B3CC9F
accent
#D3558C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8E54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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