#8E45D5#8E45D5

#8E45D5 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.4% C 0.211 H 303.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8E45D5
RGBrgb(142, 69, 213)
HSLhsl(270, 63%, 55%)
HSVhsv(270, 68%, 84%)
CMYKcmyk(33.3%, 67.6%, 0%, 16.5%)
CIE-LABlab(45.37, 57.05, -62.12)
CIE-LCHlch(45.37, 84.34, 312.56°)
OKLaboklab(55.42% 0.1163 -0.1766)
OKLCHoklch(55.42% 0.211 303.4)
XYZxyz(25.2909, 14.8111, 64.4643)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45D5 #8CD545
analogous
#4645D5 #8E45D5 #D545D4
triadic
#8E45D5 #D58E45 #45D58E
tetradic
#8E45D5 #D54645 #8CD545 #45D4D5
square
#8E45D5 #D54645 #8CD545 #45D4D5
split-complementary
#8E45D5 #D4D545 #45D546
monochromatic
#511D82 #6F29B4 #8E45D5 #AC77E0 #CBA9EC

Accessibility & contrast

On white

5.30
#8E45D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8E45D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45D5
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45D5#FFFFFF#000000##FFFFFF
##8E45D51.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD9
Deuteranopia (green-blind)
#006BD2
Tritanopia (blue-blind)
#806688
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8e45d5;
/* rgb */ color: rgb(142, 69, 213);
/* oklch */ color: oklch(55.4% 0.211 303.4);
Tailwind
colors: {
  custom: {
    50: '#b47ee3',
    500: '#8e45d5',
    950: '#000000',
  },
}
SCSS
$custom: #8e45d5;
$custom-light: #b47ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45d5",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 270.417,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55419,
    "c": 0.21142,
    "h": 303.4
  },
  "luminance": 0.14811
}

Semantic roles & 50–950 ramp

primary
#8E45D5
secondary
#BAD99D
accent
#E64293
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8E45D5

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

Preview Lab → · Contrast checker → · Palette generator →

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