#8E41D9#8E41D9

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

Color values

HEX#8E41D9
RGBrgb(142, 65, 217)
HSLhsl(270, 67%, 55%)
HSVhsv(270, 70%, 85%)
CMYKcmyk(34.6%, 70%, 0%, 14.9%)
CIE-LABlab(45.00, 59.84, -65.02)
CIE-LCHlch(45.00, 88.36, 312.62°)
OKLaboklab(55.24% 0.1198 -0.1851)
OKLCHoklch(55.24% 0.22 302.9)
XYZxyz(25.5671, 14.5411, 67.0920)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E41D9 #8CD941
analogous
#4241D9 #8E41D9 #D941D8
triadic
#8E41D9 #D98E41 #41D98E
tetradic
#8E41D9 #D94241 #8CD941 #41D8D9
square
#8E41D9 #D94241 #8CD941 #41D8D9
split-complementary
#8E41D9 #D8D941 #41D942
monochromatic
#511B85 #6F25B8 #8E41D9 #AC74E3 #CBA7ED

Accessibility & contrast

On white

5.37
#8E41D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8E41D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E41D9
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E41D9#FFFFFF#000000##FFFFFF
##8E41D91.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e41d9;
/* rgb */ color: rgb(142, 65, 217);
/* oklch */ color: oklch(55.2% 0.220 302.9);
Tailwind
colors: {
  custom: {
    50: '#b57ce6',
    500: '#8e41d9',
    950: '#000000',
  },
}
SCSS
$custom: #8e41d9;
$custom-light: #b57ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e41d9",
  "rgb": {
    "r": 142,
    "g": 65,
    "b": 217
  },
  "hsl": {
    "h": 270.395,
    "s": 66.667,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55241,
    "c": 0.22046,
    "h": 302.9
  },
  "luminance": 0.14541
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E41D9

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

Preview Lab → · Contrast checker → · Palette generator →

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