#8E40DA#8E40DA

#8E40DA is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.2% C 0.223 H 302.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8E40DA
RGBrgb(142, 64, 218)
HSLhsl(270, 68%, 55%)
HSVhsv(270, 71%, 85%)
CMYKcmyk(34.9%, 70.6%, 0%, 14.5%)
CIE-LABlab(44.91, 60.52, -65.73)
CIE-LCHlch(44.91, 89.35, 312.64°)
OKLaboklab(55.2% 0.1206 -0.1872)
OKLCHoklch(55.2% 0.223 302.8)
XYZxyz(25.6406, 14.4795, 67.7601)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40DA #8CDA40
analogous
#4140DA #8E40DA #DA40D9
triadic
#8E40DA #DA8E40 #40DA8E
tetradic
#8E40DA #DA4140 #8CDA40 #40D9DA
square
#8E40DA #DA4140 #8CDA40 #40D9DA
split-complementary
#8E40DA #D9DA40 #40DA41
monochromatic
#511A86 #6F24B9 #8E40DA #AC73E4 #CBA7EE

Accessibility & contrast

On white

5.39
#8E40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8E40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40DA
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40DA#FFFFFF#000000##FFFFFF
##8E40DA1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DE
Deuteranopia (green-blind)
#006AD7
Tritanopia (blue-blind)
#7E6589
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e40da;
/* rgb */ color: rgb(142, 64, 218);
/* oklch */ color: oklch(55.2% 0.223 302.8);
Tailwind
colors: {
  custom: {
    50: '#b57be6',
    500: '#8e40da',
    950: '#000000',
  },
}
SCSS
$custom: #8e40da;
$custom-light: #b57be6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40da",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 270.39,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55203,
    "c": 0.22265,
    "h": 302.8
  },
  "luminance": 0.1448
}

Semantic roles & 50–950 ramp

primary
#8E40DA
secondary
#BADB9B
accent
#EA3D93
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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