#8E50CC#8E50CC

#8E50CC is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.2% C 0.187 H 304.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8E50CC
RGBrgb(142, 80, 204)
HSLhsl(270, 55%, 56%)
HSVhsv(270, 61%, 80%)
CMYKcmyk(30.4%, 60.8%, 0%, 20%)
CIE-LABlab(46.77, 49.44, -54.69)
CIE-LCHlch(46.77, 73.73, 312.11°)
OKLaboklab(56.24% 0.1046 -0.1548)
OKLCHoklch(56.24% 0.187 304)
XYZxyz(24.9206, 15.8478, 58.8611)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E50CC #8ECC50
analogous
#5050CC #8E50CC #CC50CC
triadic
#8E50CC #CC8E50 #50CC8E
tetradic
#8E50CC #CC5050 #8ECC50 #50CCCC
square
#8E50CC #CC5050 #8ECC50 #50CCCC
split-complementary
#8E50CC #CCCC50 #50CC50
monochromatic
#51247D #6F32AD #8E50CC #AD7FDA #CBAFE8

Accessibility & contrast

On white

5.04
#8E50CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8E50CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E50CC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E50CC#FFFFFF#000000##FFFFFF
##8E50CC1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#066DD0
Deuteranopia (green-blind)
#316FC9
Tritanopia (blue-blind)
#836986
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8e50cc;
/* rgb */ color: rgb(142, 80, 204);
/* oklch */ color: oklch(56.2% 0.187 304.0);
Tailwind
colors: {
  custom: {
    50: '#b384dc',
    500: '#8e50cc',
    950: '#000000',
  },
}
SCSS
$custom: #8e50cc;
$custom-light: #b384dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e50cc",
  "rgb": {
    "r": 142,
    "g": 80,
    "b": 204
  },
  "hsl": {
    "h": 270,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56238,
    "c": 0.18681,
    "h": 304
  },
  "luminance": 0.15848
}

Semantic roles & 50–950 ramp

primary
#8E50CC
secondary
#BCD6A2
accent
#DE4A94
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E50CC

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

Preview Lab → · Contrast checker → · Palette generator →

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