#8E45D6#8E45D6

#8E45D6 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.5% C 0.212 H 303.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8E45D6
RGBrgb(142, 69, 214)
HSLhsl(270, 64%, 55%)
HSVhsv(270, 68%, 84%)
CMYKcmyk(33.6%, 67.8%, 0%, 16.1%)
CIE-LABlab(45.44, 57.29, -62.58)
CIE-LCHlch(45.44, 84.84, 312.47°)
OKLaboklab(55.49% 0.1161 -0.1779)
OKLCHoklch(55.49% 0.212 303.1)
XYZxyz(25.4182, 14.8621, 65.1349)
Luminance0.1486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45D6 #8DD645
analogous
#4545D6 #8E45D6 #D645D5
triadic
#8E45D6 #D68E45 #45D68E
tetradic
#8E45D6 #D64545 #8DD645 #45D5D6
square
#8E45D6 #D64545 #8DD645 #45D5D6
split-complementary
#8E45D6 #D5D645 #45D645
monochromatic
#511D84 #6F28B6 #8E45D6 #AC77E1 #CBA9EC

Accessibility & contrast

On white

5.29
#8E45D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8E45D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45D6
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45D6#FFFFFF#000000##FFFFFF
##8E45D61.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADA
Deuteranopia (green-blind)
#006BD3
Tritanopia (blue-blind)
#806688
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8e45d6;
/* rgb */ color: rgb(142, 69, 214);
/* oklch */ color: oklch(55.5% 0.212 303.1);
Tailwind
colors: {
  custom: {
    50: '#b47ee3',
    500: '#8e45d6',
    950: '#000000',
  },
}
SCSS
$custom: #8e45d6;
$custom-light: #b47ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45d6",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 270.207,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55491,
    "c": 0.21248,
    "h": 303.1
  },
  "luminance": 0.14862
}

Semantic roles & 50–950 ramp

primary
#8E45D6
secondary
#BBDA9D
accent
#E74193
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E45D6

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

Preview Lab → · Contrast checker → · Palette generator →

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