#8E45D8#8E45D8

#8E45D8 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.6% C 0.215 H 302.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8E45D8
RGBrgb(142, 69, 216)
HSLhsl(270, 65%, 56%)
HSVhsv(270, 68%, 85%)
CMYKcmyk(34.3%, 68.1%, 0%, 15.3%)
CIE-LABlab(45.59, 57.76, -63.49)
CIE-LCHlch(45.59, 85.84, 312.29°)
OKLaboklab(55.64% 0.1159 -0.1806)
OKLCHoklch(55.64% 0.215 302.7)
XYZxyz(25.6752, 14.9649, 66.4883)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45D8 #8FD845
analogous
#4545D8 #8E45D8 #D745D8
triadic
#8E45D8 #D88E45 #45D88E
tetradic
#8E45D8 #D84545 #8FD845 #45D8D7
square
#8E45D8 #D84545 #8FD845 #45D8D7
split-complementary
#8E45D8 #D8D745 #45D845
monochromatic
#511C86 #6F27B9 #8E45D8 #AD78E3 #CBAAED

Accessibility & contrast

On white

5.26
#8E45D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8E45D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45D8
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45D8#FFFFFF#000000##FFFFFF
##8E45D81.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#7F6789
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8e45d8;
/* rgb */ color: rgb(142, 69, 216);
/* oklch */ color: oklch(55.6% 0.215 302.7);
Tailwind
colors: {
  custom: {
    50: '#b47ee5',
    500: '#8e45d8',
    950: '#000000',
  },
}
SCSS
$custom: #8e45d8;
$custom-light: #b47ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45d8",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 269.796,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55637,
    "c": 0.2146,
    "h": 302.7
  },
  "luminance": 0.14965
}

Semantic roles & 50–950 ramp

primary
#8E45D8
secondary
#BDDB9E
accent
#E84094
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E45D8

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

Preview Lab → · Contrast checker → · Palette generator →

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