#8E40D6#8E40D6

#8E40D6 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.219 H 303.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8E40D6
RGBrgb(142, 64, 214)
HSLhsl(271, 65%, 55%)
HSVhsv(271, 70%, 84%)
CMYKcmyk(33.6%, 70.1%, 0%, 16.1%)
CIE-LABlab(44.62, 59.59, -63.91)
CIE-LCHlch(44.62, 87.38, 312.99°)
OKLaboklab(54.9% 0.1212 -0.1818)
OKLCHoklch(54.9% 0.219 303.7)
XYZxyz(25.1235, 14.2727, 65.0366)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40D6 #88D640
analogous
#4340D6 #8E40D6 #D640D3
triadic
#8E40D6 #D68E40 #40D68E
tetradic
#8E40D6 #D64340 #88D640 #40D3D6
square
#8E40D6 #D64340 #88D640 #40D3D6
split-complementary
#8E40D6 #D3D640 #40D643
monochromatic
#501B80 #6F26B2 #8E40D6 #AC72E1 #CAA5EC

Accessibility & contrast

On white

5.45
#8E40D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8E40D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40D6
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40D6#FFFFFF#000000##FFFFFF
##8E40D61.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#0069D3
Tritanopia (blue-blind)
#806387
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e40d6;
/* rgb */ color: rgb(142, 64, 214);
/* oklch */ color: oklch(54.9% 0.219 303.7);
Tailwind
colors: {
  custom: {
    50: '#b57be4',
    500: '#8e40d6',
    950: '#000000',
  },
}
SCSS
$custom: #8e40d6;
$custom-light: #b57be4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40d6",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 271.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54904,
    "c": 0.21854,
    "h": 303.7
  },
  "luminance": 0.14273
}

Semantic roles & 50–950 ramp

primary
#8E40D6
secondary
#B8D999
accent
#E84091
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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