#8C42CE#8C42CE

#8C42CE is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.3% C 0.207 H 304.6°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8C42CE
RGBrgb(140, 66, 206)
HSLhsl(272, 59%, 53%)
HSVhsv(272, 68%, 81%)
CMYKcmyk(32%, 68%, 0%, 19.2%)
CIE-LABlab(44.13, 56.42, -60.12)
CIE-LCHlch(44.13, 82.45, 313.18°)
OKLaboklab(54.32% 0.1176 -0.1708)
OKLCHoklch(54.32% 0.207 304.6)
XYZxyz(23.9015, 13.9282, 59.8098)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C42CE #84CE42
analogous
#4642CE #8C42CE #CE42CA
triadic
#8C42CE #CE8C42 #42CE8C
tetradic
#8C42CE #CE4642 #84CE42 #42CACE
square
#8C42CE #CE4642 #84CE42 #42CACE
split-complementary
#8C42CE #CACE42 #42CE46
monochromatic
#4D1F77 #6D2BA7 #8C42CE #AA73DB #C7A3E7

Accessibility & contrast

On white

5.55
#8C42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C42CE
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C42CE#FFFFFF#000000##FFFFFF
##8C42CE1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0868CB
Tritanopia (blue-blind)
#806283
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c42ce;
/* rgb */ color: rgb(140, 66, 206);
/* oklch */ color: oklch(54.3% 0.207 304.6);
Tailwind
colors: {
  custom: {
    50: '#b37cde',
    500: '#8c42ce',
    950: '#000000',
  },
}
SCSS
$custom: #8c42ce;
$custom-light: #b37cde;
$custom-dark: #000000;
JSON
{
  "hex": "#8c42ce",
  "rgb": {
    "r": 140,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 271.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5432,
    "c": 0.20736,
    "h": 304.6
  },
  "luminance": 0.13928
}

Semantic roles & 50–950 ramp

primary
#8C42CE
secondary
#B4D498
accent
#E2468F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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