#8D42C4#8D42C4

#8D42C4 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.7% C 0.197 H 307.5°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8D42C4
RGBrgb(141, 66, 196)
HSLhsl(275, 52%, 51%)
HSVhsv(275, 66%, 77%)
CMYKcmyk(28.1%, 66.3%, 0%, 23.1%)
CIE-LABlab(43.57, 54.32, -55.23)
CIE-LCHlch(43.57, 77.46, 314.52°)
OKLaboklab(53.73% 0.12 -0.1563)
OKLCHoklch(53.73% 0.197 307.5)
XYZxyz(22.8944, 13.5450, 53.6222)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42C4 #79C442
analogous
#4C42C4 #8D42C4 #C442BA
triadic
#8D42C4 #C48D42 #42C48D
tetradic
#8D42C4 #C44C42 #79C442 #42BAC4
square
#8D42C4 #C44C42 #79C442 #42BAC4
split-complementary
#8D42C4 #BAC442 #42C44C
monochromatic
#4B216A #6C3099 #8D42C4 #A971D3 #C59FE1

Accessibility & contrast

On white

5.66
#8D42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8D42C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42C4
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42C4#FFFFFF#000000##FFFFFF
##8D42C41.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C8
Deuteranopia (green-blind)
#2568C1
Tritanopia (blue-blind)
#845E7D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8d42c4;
/* rgb */ color: rgb(141, 66, 196);
/* oklch */ color: oklch(53.7% 0.197 307.5);
Tailwind
colors: {
  custom: {
    50: '#b37bd7',
    500: '#8d42c4',
    950: '#000000',
  },
}
SCSS
$custom: #8d42c4;
$custom-light: #b37bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42c4",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 274.615,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53731,
    "c": 0.19711,
    "h": 307.5
  },
  "luminance": 0.13545
}

Semantic roles & 50–950 ramp

primary
#8D42C4
secondary
#ACCE94
accent
#DC4C89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8D42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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