#8D42D4#8D42D4

#8D42D4 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.214 H 303.5°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8D42D4
RGBrgb(141, 66, 212)
HSLhsl(271, 63%, 55%)
HSVhsv(271, 69%, 83%)
CMYKcmyk(33.5%, 68.9%, 0%, 16.9%)
CIE-LABlab(44.68, 58.02, -62.68)
CIE-LCHlch(44.68, 85.41, 312.79°)
OKLaboklab(54.87% 0.1182 -0.1783)
OKLCHoklch(54.87% 0.214 303.5)
XYZxyz(24.8136, 14.3127, 63.7300)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42D4 #89D442
analogous
#4442D4 #8D42D4 #D442D2
triadic
#8D42D4 #D48D42 #42D48D
tetradic
#8D42D4 #D44442 #89D442 #42D2D4
square
#8D42D4 #D44442 #89D442 #42D2D4
split-complementary
#8D42D4 #D2D442 #42D444
monochromatic
#4F1D7F #6E28B1 #8D42D4 #AB74DF #C9A6EB

Accessibility & contrast

On white

5.44
#8D42D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8D42D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42D4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42D4#FFFFFF#000000##FFFFFF
##8D42D41.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#7F6486
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8d42d4;
/* rgb */ color: rgb(141, 66, 212);
/* oklch */ color: oklch(54.9% 0.214 303.5);
Tailwind
colors: {
  custom: {
    50: '#b47ce2',
    500: '#8d42d4',
    950: '#000000',
  },
}
SCSS
$custom: #8d42d4;
$custom-light: #b47ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42d4",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 270.822,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54872,
    "c": 0.21387,
    "h": 303.5
  },
  "luminance": 0.14313
}

Semantic roles & 50–950 ramp

primary
#8D42D4
secondary
#B8D89A
accent
#E64292
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8D42D4

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

Preview Lab → · Contrast checker → · Palette generator →

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