#8D42D5#8D42D5

#8D42D5 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 54.9% C 0.215 H 303.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8D42D5
RGBrgb(141, 66, 213)
HSLhsl(271, 64%, 55%)
HSVhsv(271, 69%, 84%)
CMYKcmyk(33.8%, 69%, 0%, 16.5%)
CIE-LABlab(44.75, 58.25, -63.14)
CIE-LCHlch(44.75, 85.91, 312.69°)
OKLaboklab(54.95% 0.118 -0.1796)
OKLCHoklch(54.95% 0.215 303.3)
XYZxyz(24.9402, 14.3633, 64.3964)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42D5 #8AD542
analogous
#4442D5 #8D42D5 #D542D4
triadic
#8D42D5 #D58D42 #42D58D
tetradic
#8D42D5 #D54442 #8AD542 #42D4D5
square
#8D42D5 #D54442 #8AD542 #42D4D5
split-complementary
#8D42D5 #D4D542 #42D544
monochromatic
#4F1C80 #6E28B2 #8D42D5 #AB74E0 #C9A6EB

Accessibility & contrast

On white

5.42
#8D42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8D42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42D5
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42D5#FFFFFF#000000##FFFFFF
##8D42D51.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#7F6487
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8d42d5;
/* rgb */ color: rgb(141, 66, 213);
/* oklch */ color: oklch(54.9% 0.215 303.3);
Tailwind
colors: {
  custom: {
    50: '#b47ce3',
    500: '#8d42d5',
    950: '#000000',
  },
}
SCSS
$custom: #8d42d5;
$custom-light: #b47ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42d5",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 270.612,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54946,
    "c": 0.21491,
    "h": 303.3
  },
  "luminance": 0.14363
}

Semantic roles & 50–950 ramp

primary
#8D42D5
secondary
#B9D89A
accent
#E74192
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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