#8C42CD#8C42CD

#8C42CD is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.2% C 0.206 H 304.8°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8C42CD
RGBrgb(140, 66, 205)
HSLhsl(272, 58%, 53%)
HSVhsv(272, 68%, 80%)
CMYKcmyk(31.7%, 67.8%, 0%, 19.6%)
CIE-LABlab(44.06, 56.18, -59.66)
CIE-LCHlch(44.06, 81.95, 313.28°)
OKLaboklab(54.25% 0.1178 -0.1694)
OKLCHoklch(54.25% 0.206 304.8)
XYZxyz(23.7804, 13.8798, 59.1720)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C42CD #83CD42
analogous
#4642CD #8C42CD #CD42C9
triadic
#8C42CD #CD8C42 #42CD8C
tetradic
#8C42CD #CD4642 #83CD42 #42C9CD
square
#8C42CD #CD4642 #83CD42 #42C9CD
split-complementary
#8C42CD #C9CD42 #42CD46
monochromatic
#4D1F76 #6D2CA6 #8C42CD #A972DA #C7A3E7

Accessibility & contrast

On white

5.56
#8C42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8C42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C42CD
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C42CD#FFFFFF#000000##FFFFFF
##8C42CD1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0D68CA
Tritanopia (blue-blind)
#806182
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c42cd;
/* rgb */ color: rgb(140, 66, 205);
/* oklch */ color: oklch(54.2% 0.206 304.8);
Tailwind
colors: {
  custom: {
    50: '#b27cdd',
    500: '#8c42cd',
    950: '#000000',
  },
}
SCSS
$custom: #8c42cd;
$custom-light: #b27cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c42cd",
  "rgb": {
    "r": 140,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 271.942,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54248,
    "c": 0.20631,
    "h": 304.8
  },
  "luminance": 0.1388
}

Semantic roles & 50–950 ramp

primary
#8C42CD
secondary
#B3D397
accent
#E1468F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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