#8E54B2#8E54B2

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

Color values

HEX#8E54B2
RGBrgb(142, 84, 178)
HSLhsl(277, 38%, 51%)
HSVhsv(277, 53%, 70%)
CMYKcmyk(20.2%, 52.8%, 0%, 30.2%)
CIE-LABlab(46.05, 41.20, -40.75)
CIE-LCHlch(46.05, 57.95, 315.31°)
OKLaboklab(55.22% 0.0987 -0.114)
OKLCHoklch(55.22% 0.151 310.9)
XYZxyz(22.3601, 15.3062, 43.8873)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E54B2 #78B254
analogous
#5F54B2 #8E54B2 #B254A7
triadic
#8E54B2 #B28E54 #54B28E
tetradic
#8E54B2 #B25F54 #78B254 #54A7B2
square
#8E54B2 #B25F54 #78B254 #54A7B2
split-complementary
#8E54B2 #A7B254 #54B25F
monochromatic
#4C2B60 #6D3E8A #8E54B2 #AA7EC5 #C6A8D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E54B2#FFFFFF#000000##FFFFFF
##8E54B21.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)
#3B6AB5
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#8A647B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8e54b2;
/* rgb */ color: rgb(142, 84, 178);
/* oklch */ color: oklch(55.2% 0.151 310.9);
Tailwind
colors: {
  custom: {
    50: '#b186c9',
    500: '#8e54b2',
    950: '#000000',
  },
}
SCSS
$custom: #8e54b2;
$custom-light: #b186c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e54b2",
  "rgb": {
    "r": 142,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 277.021,
    "s": 37.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55215,
    "c": 0.15081,
    "h": 310.9
  },
  "luminance": 0.15306
}

Semantic roles & 50–950 ramp

primary
#8E54B2
secondary
#ACC69C
accent
#CE5A86
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8E54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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