#8E51CD#8E51CD

#8E51CD is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.4% C 0.187 H 303.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8E51CD
RGBrgb(142, 81, 205)
HSLhsl(270, 55%, 56%)
HSVhsv(270, 60%, 80%)
CMYKcmyk(30.7%, 60.5%, 0%, 19.6%)
CIE-LABlab(47.03, 49.16, -54.85)
CIE-LCHlch(47.03, 73.66, 311.87°)
OKLaboklab(56.45% 0.1033 -0.1553)
OKLCHoklch(56.45% 0.187 303.6)
XYZxyz(25.1147, 16.0435, 59.5194)
Luminance0.1604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E51CD #90CD51
analogous
#5152CD #8E51CD #CC51CD
triadic
#8E51CD #CD8E51 #51CD8E
tetradic
#8E51CD #CD5152 #90CD51 #51CDCC
square
#8E51CD #CD5152 #90CD51 #51CDCC
split-complementary
#8E51CD #CDCC51 #52CD51
monochromatic
#51257F #6F32AF #8E51CD #AD81DB #CCB0E8

Accessibility & contrast

On white

4.99
#8E51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8E51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E51CD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E51CD#FFFFFF#000000##FFFFFF
##8E51CD1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#096ED1
Deuteranopia (green-blind)
#316FCA
Tritanopia (blue-blind)
#826A87
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8e51cd;
/* rgb */ color: rgb(142, 81, 205);
/* oklch */ color: oklch(56.4% 0.187 303.6);
Tailwind
colors: {
  custom: {
    50: '#b385dd',
    500: '#8e51cd',
    950: '#000000',
  },
}
SCSS
$custom: #8e51cd;
$custom-light: #b385dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e51cd",
  "rgb": {
    "r": 142,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 269.516,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56445,
    "c": 0.18652,
    "h": 303.6
  },
  "luminance": 0.16043
}

Semantic roles & 50–950 ramp

primary
#8E51CD
secondary
#BDD7A3
accent
#DF4995
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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