#8D42D9#8D42D9

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

Color values

HEX#8D42D9
RGBrgb(141, 66, 217)
HSLhsl(270, 67%, 55%)
HSVhsv(270, 70%, 85%)
CMYKcmyk(35%, 69.6%, 0%, 14.9%)
CIE-LABlab(45.04, 59.19, -64.96)
CIE-LCHlch(45.04, 87.88, 312.34°)
OKLaboklab(55.24% 0.1174 -0.185)
OKLCHoklch(55.24% 0.219 302.4)
XYZxyz(25.4541, 14.5689, 67.1032)
Luminance0.1457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42D9 #8ED942
analogous
#4242D9 #8D42D9 #D842D9
triadic
#8D42D9 #D98D42 #42D98D
tetradic
#8D42D9 #D94242 #8ED942 #42D9D8
square
#8D42D9 #D94242 #8ED942 #42D9D8
split-complementary
#8D42D9 #D9D842 #42D942
monochromatic
#501B86 #6E25B9 #8D42D9 #AC75E3 #CAA8ED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D42D9#FFFFFF#000000##FFFFFF
##8D42D91.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)
#7D6689
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8d42d9;
/* rgb */ color: rgb(141, 66, 217);
/* oklch */ color: oklch(55.2% 0.219 302.4);
Tailwind
colors: {
  custom: {
    50: '#b47ce6',
    500: '#8d42d9',
    950: '#000000',
  },
}
SCSS
$custom: #8d42d9;
$custom-light: #b47ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42d9",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 269.801,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55242,
    "c": 0.21908,
    "h": 302.4
  },
  "luminance": 0.14569
}

Semantic roles & 50–950 ramp

primary
#8D42D9
secondary
#BCDB9C
accent
#E93E94
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D42D9

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

Preview Lab → · Contrast checker → · Palette generator →

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