#8E45E8#8E45E8

#8E45E8 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.8% C 0.231 H 299.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8E45E8
RGBrgb(142, 69, 232)
HSLhsl(267, 78%, 59%)
HSVhsv(267, 70%, 91%)
CMYKcmyk(38.8%, 70.3%, 0%, 9%)
CIE-LABlab(46.75, 61.59, -70.69)
CIE-LCHlch(46.75, 93.76, 311.06°)
OKLaboklab(56.84% 0.1134 -0.2018)
OKLCHoklch(56.84% 0.231 299.3)
XYZxyz(27.8453, 15.8329, 77.9173)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E45E8 #9FE845
analogous
#454EE8 #8E45E8 #DF45E8
triadic
#8E45E8 #E88E45 #45E88E
tetradic
#8E45E8 #E8454E #9FE845 #45E8DF
square
#8E45E8 #E8454E #9FE845 #45E8DF
split-complementary
#8E45E8 #E8DF45 #4EE845
monochromatic
#52149F #6E1AD5 #8E45E8 #AF7BEF #D0B2F5

Accessibility & contrast

On white

5.04
#8E45E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8E45E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E45E8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E45E8#FFFFFF#000000##FFFFFF
##8E45E81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FED
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#796D92
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8e45e8;
/* rgb */ color: rgb(142, 69, 232);
/* oklch */ color: oklch(56.8% 0.231 299.3);
Tailwind
colors: {
  custom: {
    50: '#b67ef0',
    500: '#8e45e8',
    950: '#000000',
  },
}
SCSS
$custom: #8e45e8;
$custom-light: #b67ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e45e8",
  "rgb": {
    "r": 142,
    "g": 69,
    "b": 232
  },
  "hsl": {
    "h": 266.871,
    "s": 77.99,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56836,
    "c": 0.23145,
    "h": 299.3
  },
  "luminance": 0.15833
}

Semantic roles & 50–950 ramp

primary
#8E45E8
secondary
#C8E4A4
accent
#F4339E
background
#FBF8FE
surface
#F7EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8E45E8

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

Preview Lab → · Contrast checker → · Palette generator →

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