#8E40D9#8E40D9

#8E40D9 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.1% C 0.222 H 303.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8E40D9
RGBrgb(142, 64, 217)
HSLhsl(271, 67%, 55%)
HSVhsv(271, 71%, 85%)
CMYKcmyk(34.6%, 70.5%, 0%, 14.9%)
CIE-LABlab(44.84, 60.28, -65.28)
CIE-LCHlch(44.84, 88.86, 312.72°)
OKLaboklab(55.13% 0.1207 -0.1858)
OKLCHoklch(55.13% 0.222 303)
XYZxyz(25.5102, 14.4273, 67.0730)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40D9 #8BD940
analogous
#4140D9 #8E40D9 #D940D8
triadic
#8E40D9 #D98E40 #40D98E
tetradic
#8E40D9 #D94140 #8BD940 #40D8D9
square
#8E40D9 #D94140 #8BD940 #40D8D9
split-complementary
#8E40D9 #D8D940 #40D941
monochromatic
#501A84 #6F24B7 #8E40D9 #AC73E3 #CAA6ED

Accessibility & contrast

On white

5.40
#8E40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8E40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40D9
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40D9#FFFFFF#000000##FFFFFF
##8E40D91.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#006AD6
Tritanopia (blue-blind)
#7F6588
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e40d9;
/* rgb */ color: rgb(142, 64, 217);
/* oklch */ color: oklch(55.1% 0.222 303.0);
Tailwind
colors: {
  custom: {
    50: '#b57be6',
    500: '#8e40d9',
    950: '#000000',
  },
}
SCSS
$custom: #8e40d9;
$custom-light: #b57be6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40d9",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 270.588,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55128,
    "c": 0.22163,
    "h": 303
  },
  "luminance": 0.14427
}

Semantic roles & 50–950 ramp

primary
#8E40D9
secondary
#BADA9A
accent
#EA3E92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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