#8E40DD#8E40DD

#8E40DD is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.4% C 0.226 H 302.1°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8E40DD
RGBrgb(142, 64, 221)
HSLhsl(270, 70%, 56%)
HSVhsv(270, 71%, 87%)
CMYKcmyk(35.7%, 71%, 0%, 13.3%)
CIE-LABlab(45.13, 61.22, -67.08)
CIE-LCHlch(45.13, 90.82, 312.38°)
OKLaboklab(55.43% 0.1201 -0.1912)
OKLCHoklch(55.43% 0.226 302.1)
XYZxyz(26.0368, 14.6380, 69.8463)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40DD #8FDD40
analogous
#4040DD #8E40DD #DD40DD
triadic
#8E40DD #DD8E40 #40DD8E
tetradic
#8E40DD #DD4040 #8FDD40 #40DDDD
square
#8E40DD #DD4040 #8FDD40 #40DDDD
split-complementary
#8E40DD #DDDD40 #40DD40
monochromatic
#51198A #6F22BE #8E40DD #AD74E6 #CBA8EF

Accessibility & contrast

On white

5.35
#8E40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8E40DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40DD
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40DD#FFFFFF#000000##FFFFFF
##8E40DD1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#006ADA
Tritanopia (blue-blind)
#7D668B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8e40dd;
/* rgb */ color: rgb(142, 64, 221);
/* oklch */ color: oklch(55.4% 0.226 302.1);
Tailwind
colors: {
  custom: {
    50: '#b57be9',
    500: '#8e40dd',
    950: '#000000',
  },
}
SCSS
$custom: #8e40dd;
$custom-light: #b57be9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40dd",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 269.809,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55429,
    "c": 0.22573,
    "h": 302.1
  },
  "luminance": 0.14638
}

Semantic roles & 50–950 ramp

primary
#8E40DD
secondary
#BDDD9C
accent
#ED3B94
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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