#8E45E1#8E45E1

#8E45E1 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.224 H 300.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8E45E1
RGBrgb(142, 69, 225)
HSLhsl(268, 72%, 58%)
HSVhsv(268, 69%, 88%)
CMYKcmyk(36.9%, 69.3%, 0%, 11.8%)
CIE-LABlab(46.24, 59.90, -67.57)
CIE-LCHlch(46.24, 90.30, 311.56°)
OKLaboklab(56.3% 0.1145 -0.1926)
OKLCHoklch(56.3% 0.224 300.7)
XYZxyz(26.8707, 15.4431, 72.7847)
Luminance0.1544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45E1 #98E145
analogous
#454AE1 #8E45E1 #DC45E1
triadic
#8E45E1 #E18E45 #45E18E
tetradic
#8E45E1 #E1454A #98E145 #45E1DC
square
#8E45E1 #E1454A #98E145 #45E1DC
split-complementary
#8E45E1 #E1DC45 #4AE145
monochromatic
#521894 #6F20C8 #8E45E1 #AE7AE9 #CEAEF2

Accessibility & contrast

On white

5.14
#8E45E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8E45E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45E1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45E1#FFFFFF#000000##FFFFFF
##8E45E11.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#006DDE
Tritanopia (blue-blind)
#7C6A8E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8e45e1;
/* rgb */ color: rgb(142, 69, 225);
/* oklch */ color: oklch(56.3% 0.224 300.7);
Tailwind
colors: {
  custom: {
    50: '#b57eeb',
    500: '#8e45e1',
    950: '#000000',
  },
}
SCSS
$custom: #8e45e1;
$custom-light: #b57eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45e1",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 268.077,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56304,
    "c": 0.2241,
    "h": 300.7
  },
  "luminance": 0.15443
}

Semantic roles & 50–950 ramp

primary
#8E45E1
secondary
#C3E0A2
accent
#EF399A
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E45E1

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

Preview Lab → · Contrast checker → · Palette generator →

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