#8D42CF#8D42CF

#8D42CF is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.5% C 0.209 H 304.7°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8D42CF
RGBrgb(141, 66, 207)
HSLhsl(272, 59%, 54%)
HSVhsv(272, 68%, 81%)
CMYKcmyk(31.9%, 68.1%, 0%, 18.8%)
CIE-LABlab(44.33, 56.85, -60.38)
CIE-LCHlch(44.33, 82.93, 313.28°)
OKLaboklab(54.51% 0.1188 -0.1715)
OKLCHoklch(54.51% 0.209 304.7)
XYZxyz(24.1927, 14.0643, 60.4595)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42CF #84CF42
analogous
#4642CF #8D42CF #CF42CA
triadic
#8D42CF #CF8D42 #42CF8D
tetradic
#8D42CF #CF4642 #84CF42 #42CACF
square
#8D42CF #CF4642 #84CF42 #42CACF
split-complementary
#8D42CF #CACF42 #42CF46
monochromatic
#4E1F78 #6E2BA9 #8D42CF #AA73DB #C8A4E8

Accessibility & contrast

On white

5.51
#8D42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8D42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42CF
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42CF#FFFFFF#000000##FFFFFF
##8D42CF1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#0869CC
Tritanopia (blue-blind)
#816283
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8d42cf;
/* rgb */ color: rgb(141, 66, 207);
/* oklch */ color: oklch(54.5% 0.209 304.7);
Tailwind
colors: {
  custom: {
    50: '#b37cde',
    500: '#8d42cf',
    950: '#000000',
  },
}
SCSS
$custom: #8d42cf;
$custom-light: #b37cde;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42cf",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 271.915,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54509,
    "c": 0.20864,
    "h": 304.7
  },
  "luminance": 0.14064
}

Semantic roles & 50–950 ramp

primary
#8D42CF
secondary
#B4D598
accent
#E3458F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8D42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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