#8E40E5#8E40E5

#8E40E5 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.0% C 0.234 H 300.4°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8E40E5
RGBrgb(142, 64, 229)
HSLhsl(268, 76%, 57%)
HSVhsv(268, 72%, 90%)
CMYKcmyk(38%, 72.1%, 0%, 10.2%)
CIE-LABlab(45.74, 63.10, -70.65)
CIE-LCHlch(45.74, 94.73, 311.77°)
OKLaboklab(56.04% 0.1185 -0.2016)
OKLCHoklch(56.04% 0.234 300.4)
XYZxyz(27.1281, 15.0745, 75.5940)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40E5 #97E540
analogous
#4044E5 #8E40E5 #E140E5
triadic
#8E40E5 #E58E40 #40E58E
tetradic
#8E40E5 #E54044 #97E540 #40E5E1
square
#8E40E5 #E54044 #97E540 #40E5E1
split-complementary
#8E40E5 #E5E140 #44E540
monochromatic
#521496 #6F1CCC #8E40E5 #AE76EC #CEACF4

Accessibility & contrast

On white

5.23
#8E40E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8E40E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40E5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40E5#FFFFFF#000000##FFFFFF
##8E40E51.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#006BE2
Tritanopia (blue-blind)
#7A698F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8e40e5;
/* rgb */ color: rgb(142, 64, 229);
/* oklch */ color: oklch(56.0% 0.234 300.4);
Tailwind
colors: {
  custom: {
    50: '#b67cee',
    500: '#8e40e5',
    950: '#000000',
  },
}
SCSS
$custom: #8e40e5;
$custom-light: #b67cee;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40e5",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 229
  },
  "hsl": {
    "h": 268.364,
    "s": 76.037,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56044,
    "c": 0.23391,
    "h": 300.4
  },
  "luminance": 0.15075
}

Semantic roles & 50–950 ramp

primary
#8E40E5
secondary
#C2E29F
accent
#F33599
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8E40E5

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

Preview Lab → · Contrast checker → · Palette generator →

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