#8C42CF#8C42CF

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

Color values

HEX#8C42CF
RGBrgb(140, 66, 207)
HSLhsl(271, 59%, 54%)
HSVhsv(271, 68%, 81%)
CMYKcmyk(32.4%, 68.1%, 0%, 18.8%)
CIE-LABlab(44.20, 56.65, -60.59)
CIE-LCHlch(44.20, 82.94, 313.08°)
OKLaboklab(54.39% 0.1175 -0.1721)
OKLCHoklch(54.39% 0.208 304.3)
XYZxyz(24.0234, 13.9770, 60.4516)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C42CF #85CF42
analogous
#4542CF #8C42CF #CF42CC
triadic
#8C42CF #CF8C42 #42CF8C
tetradic
#8C42CF #CF4542 #85CF42 #42CCCF
square
#8C42CF #CF4542 #85CF42 #42CCCF
split-complementary
#8C42CF #CCCF42 #42CF45
monochromatic
#4E1F78 #6D2BA9 #8C42CF #AA73DB #C7A4E8

Accessibility & contrast

On white

5.53
#8C42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8C42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C42CF
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C42CF#FFFFFF#000000##FFFFFF
##8C42CF1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#0368CC
Tritanopia (blue-blind)
#7F6283
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c42cf;
/* rgb */ color: rgb(140, 66, 207);
/* oklch */ color: oklch(54.4% 0.208 304.3);
Tailwind
colors: {
  custom: {
    50: '#b37cde',
    500: '#8c42cf',
    950: '#000000',
  },
}
SCSS
$custom: #8c42cf;
$custom-light: #b37cde;
$custom-dark: #000000;
JSON
{
  "hex": "#8c42cf",
  "rgb": {
    "r": 140,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 271.489,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54392,
    "c": 0.20841,
    "h": 304.3
  },
  "luminance": 0.13977
}

Semantic roles & 50–950 ramp

primary
#8C42CF
secondary
#B5D598
accent
#E34590
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8C42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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