#8E41D2#8E41D2

#8E41D2 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.213 H 304.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8E41D2
RGBrgb(142, 65, 210)
HSLhsl(272, 62%, 54%)
HSVhsv(272, 69%, 82%)
CMYKcmyk(32.4%, 69%, 0%, 17.6%)
CIE-LABlab(44.50, 58.21, -61.82)
CIE-LCHlch(44.50, 84.91, 313.28°)
OKLaboklab(54.73% 0.1208 -0.1757)
OKLCHoklch(54.73% 0.213 304.5)
XYZxyz(24.6759, 14.1846, 62.3982)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E41D2 #85D241
analogous
#4641D2 #8E41D2 #D241CE
triadic
#8E41D2 #D28E41 #41D28E
tetradic
#8E41D2 #D24641 #85D241 #41CED2
square
#8E41D2 #D24641 #85D241 #41CED2
split-complementary
#8E41D2 #CED241 #41D246
monochromatic
#4F1D7B #6F29AD #8E41D2 #AB72DE #C9A4E9

Accessibility & contrast

On white

5.47
#8E41D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8E41D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E41D2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E41D2#FFFFFF#000000##FFFFFF
##8E41D21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#816285
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8e41d2;
/* rgb */ color: rgb(142, 65, 210);
/* oklch */ color: oklch(54.7% 0.213 304.5);
Tailwind
colors: {
  custom: {
    50: '#b47be1',
    500: '#8e41d2',
    950: '#000000',
  },
}
SCSS
$custom: #8e41d2;
$custom-light: #b47be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e41d2",
  "rgb": {
    "r": 142,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 271.862,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54725,
    "c": 0.21322,
    "h": 304.5
  },
  "luminance": 0.14185
}

Semantic roles & 50–950 ramp

primary
#8E41D2
secondary
#B5D698
accent
#E5438F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E41D2

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

Preview Lab → · Contrast checker → · Palette generator →

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