#8D42D3#8D42D3

#8D42D3 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.213 H 303.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8D42D3
RGBrgb(141, 66, 211)
HSLhsl(271, 62%, 54%)
HSVhsv(271, 69%, 83%)
CMYKcmyk(33.2%, 68.7%, 0%, 17.3%)
CIE-LABlab(44.61, 57.78, -62.22)
CIE-LCHlch(44.61, 84.91, 312.88°)
OKLaboklab(54.8% 0.1183 -0.1769)
OKLCHoklch(54.8% 0.213 303.8)
XYZxyz(24.6879, 14.2624, 63.0677)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42D3 #88D342
analogous
#4442D3 #8D42D3 #D342D1
triadic
#8D42D3 #D38D42 #42D38D
tetradic
#8D42D3 #D34442 #88D342 #42D1D3
square
#8D42D3 #D34442 #88D342 #42D1D3
split-complementary
#8D42D3 #D1D342 #42D344
monochromatic
#4F1D7D #6E29AF #8D42D3 #AB74DF #C9A5EA

Accessibility & contrast

On white

5.45
#8D42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8D42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42D3
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42D3#FFFFFF#000000##FFFFFF
##8D42D31.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#7F6386
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8d42d3;
/* rgb */ color: rgb(141, 66, 211);
/* oklch */ color: oklch(54.8% 0.213 303.8);
Tailwind
colors: {
  custom: {
    50: '#b47ce1',
    500: '#8d42d3',
    950: '#000000',
  },
}
SCSS
$custom: #8d42d3;
$custom-light: #b47ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42d3",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 271.034,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54799,
    "c": 0.21282,
    "h": 303.8
  },
  "luminance": 0.14262
}

Semantic roles & 50–950 ramp

primary
#8D42D3
secondary
#B7D79A
accent
#E54291
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8D42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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