#8D42D8#8D42D8

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

Color values

HEX#8D42D8
RGBrgb(141, 66, 216)
HSLhsl(270, 66%, 55%)
HSVhsv(270, 69%, 85%)
CMYKcmyk(34.7%, 69.4%, 0%, 15.3%)
CIE-LABlab(44.97, 58.96, -64.51)
CIE-LCHlch(44.97, 87.39, 312.43°)
OKLaboklab(55.17% 0.1176 -0.1836)
OKLCHoklch(55.17% 0.218 302.6)
XYZxyz(25.3245, 14.5170, 66.4203)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42D8 #8DD842
analogous
#4242D8 #8D42D8 #D842D8
triadic
#8D42D8 #D88D42 #42D88D
tetradic
#8D42D8 #D84242 #8DD842 #42D8D8
square
#8D42D8 #D84242 #8DD842 #42D8D8
split-complementary
#8D42D8 #D8D842 #42D842
monochromatic
#501B84 #6E26B7 #8D42D8 #AC75E2 #CAA7ED

Accessibility & contrast

On white

5.38
#8D42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8D42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42D8
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42D8#FFFFFF#000000##FFFFFF
##8D42D81.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#7E6588
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8d42d8;
/* rgb */ color: rgb(141, 66, 216);
/* oklch */ color: oklch(55.2% 0.218 302.6);
Tailwind
colors: {
  custom: {
    50: '#b47ce5',
    500: '#8d42d8',
    950: '#000000',
  },
}
SCSS
$custom: #8d42d8;
$custom-light: #b47ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42d8",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 270,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55167,
    "c": 0.21804,
    "h": 302.6
  },
  "luminance": 0.14517
}

Semantic roles & 50–950 ramp

primary
#8D42D8
secondary
#BBDA9C
accent
#E93F94
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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