#8D42C8#8D42C8

#8D42C8 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.201 H 306.5°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8D42C8
RGBrgb(141, 66, 200)
HSLhsl(274, 55%, 52%)
HSVhsv(274, 67%, 78%)
CMYKcmyk(29.5%, 67%, 0%, 21.6%)
CIE-LABlab(43.84, 55.23, -57.11)
CIE-LCHlch(43.84, 79.45, 314.04°)
OKLaboklab(54.01% 0.1196 -0.1619)
OKLCHoklch(54.01% 0.201 306.5)
XYZxyz(23.3558, 13.7295, 56.0520)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42C8 #7DC842
analogous
#4A42C8 #8D42C8 #C842C0
triadic
#8D42C8 #C88D42 #42C88D
tetradic
#8D42C8 #C84A42 #7DC842 #42C0C8
square
#8D42C8 #C84A42 #7DC842 #42C0C8
split-complementary
#8D42C8 #C0C842 #42C84A
monochromatic
#4D206F #6D2E9F #8D42C8 #AA71D6 #C6A1E4

Accessibility & contrast

On white

5.61
#8D42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8D42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42C8
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42C8#FFFFFF#000000##FFFFFF
##8D42C81.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#1E68C5
Tritanopia (blue-blind)
#835F80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d42c8;
/* rgb */ color: rgb(141, 66, 200);
/* oklch */ color: oklch(54.0% 0.201 306.5);
Tailwind
colors: {
  custom: {
    50: '#b37cd9',
    500: '#8d42c8',
    950: '#000000',
  },
}
SCSS
$custom: #8d42c8;
$custom-light: #b37cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42c8",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 273.582,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5401,
    "c": 0.2013,
    "h": 306.5
  },
  "luminance": 0.13729
}

Semantic roles & 50–950 ramp

primary
#8D42C8
secondary
#AFD096
accent
#DE4A8B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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