#8C42CC#8C42CC

#8C42CC is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.205 H 305.0°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8C42CC
RGBrgb(140, 66, 204)
HSLhsl(272, 58%, 53%)
HSVhsv(272, 68%, 80%)
CMYKcmyk(31.4%, 67.6%, 0%, 20%)
CIE-LABlab(43.99, 55.95, -59.19)
CIE-LCHlch(43.99, 81.45, 313.39°)
OKLaboklab(54.18% 0.1179 -0.168)
OKLCHoklch(54.18% 0.205 305)
XYZxyz(23.6601, 13.8317, 58.5384)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C42CC #82CC42
analogous
#4742CC #8C42CC #CC42C7
triadic
#8C42CC #CC8C42 #42CC8C
tetradic
#8C42CC #CC4742 #82CC42 #42C7CC
square
#8C42CC #CC4742 #82CC42 #42C7CC
split-complementary
#8C42CC #C7CC42 #42CC47
monochromatic
#4D1F74 #6D2CA4 #8C42CC #A972D9 #C7A2E6

Accessibility & contrast

On white

5.58
#8C42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8C42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C42CC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C42CC#FFFFFF#000000##FFFFFF
##8C42CC1.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#1168C9
Tritanopia (blue-blind)
#806182
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c42cc;
/* rgb */ color: rgb(140, 66, 204);
/* oklch */ color: oklch(54.2% 0.205 305.0);
Tailwind
colors: {
  custom: {
    50: '#b27cdc',
    500: '#8c42cc',
    950: '#000000',
  },
}
SCSS
$custom: #8c42cc;
$custom-light: #b27cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c42cc",
  "rgb": {
    "r": 140,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 272.174,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54176,
    "c": 0.20526,
    "h": 305
  },
  "luminance": 0.13832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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