#8D42CD#8D42CD

#8D42CD is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.207 H 305.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8D42CD
RGBrgb(141, 66, 205)
HSLhsl(272, 58%, 53%)
HSVhsv(272, 68%, 80%)
CMYKcmyk(31.2%, 67.8%, 0%, 19.6%)
CIE-LABlab(44.19, 56.39, -59.45)
CIE-LCHlch(44.19, 81.94, 313.49°)
OKLaboklab(54.36% 0.1191 -0.1688)
OKLCHoklch(54.36% 0.207 305.2)
XYZxyz(23.9497, 13.9671, 59.1800)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42CD #82CD42
analogous
#4742CD #8D42CD #CD42C7
triadic
#8D42CD #CD8D42 #42CD8D
tetradic
#8D42CD #CD4742 #82CD42 #42C7CD
square
#8D42CD #CD4742 #82CD42 #42C7CD
split-complementary
#8D42CD #C7CD42 #42CD47
monochromatic
#4E1F76 #6E2CA6 #8D42CD #AA72DA #C7A3E7

Accessibility & contrast

On white

5.54
#8D42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8D42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42CD
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42CD#FFFFFF#000000##FFFFFF
##8D42CD1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#1169CA
Tritanopia (blue-blind)
#816182
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d42cd;
/* rgb */ color: rgb(141, 66, 205);
/* oklch */ color: oklch(54.4% 0.207 305.2);
Tailwind
colors: {
  custom: {
    50: '#b37cdd',
    500: '#8d42cd',
    950: '#000000',
  },
}
SCSS
$custom: #8d42cd;
$custom-light: #b37cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42cd",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 272.374,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54365,
    "c": 0.20654,
    "h": 305.2
  },
  "luminance": 0.13967
}

Semantic roles & 50–950 ramp

primary
#8D42CD
secondary
#B3D397
accent
#E1468E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8D42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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