#8D42CA#8D42CA

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

Color values

HEX#8D42CA
RGBrgb(141, 66, 202)
HSLhsl(273, 56%, 53%)
HSVhsv(273, 67%, 79%)
CMYKcmyk(30.2%, 67.3%, 0%, 20.8%)
CIE-LABlab(43.98, 55.69, -58.05)
CIE-LCHlch(43.98, 80.45, 313.81°)
OKLaboklab(54.15% 0.1194 -0.1646)
OKLCHoklch(54.15% 0.203 306)
XYZxyz(23.5911, 13.8236, 57.2911)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42CA #7FCA42
analogous
#4942CA #8D42CA #CA42C3
triadic
#8D42CA #CA8D42 #42CA8D
tetradic
#8D42CA #CA4942 #7FCA42 #42C3CA
square
#8D42CA #CA4942 #7FCA42 #42C3CA
split-complementary
#8D42CA #C3CA42 #42CA49
monochromatic
#4D2072 #6D2DA2 #8D42CA #AA72D7 #C7A2E5

Accessibility & contrast

On white

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

On black

3.76
#8D42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8D42CA#FFFFFF#000000##FFFFFF
##8D42CA1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#1A68C7
Tritanopia (blue-blind)
#826081
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d42ca;
/* rgb */ color: rgb(141, 66, 202);
/* oklch */ color: oklch(54.2% 0.203 306.0);
Tailwind
colors: {
  custom: {
    50: '#b37cdb',
    500: '#8d42ca',
    950: '#000000',
  },
}
SCSS
$custom: #8d42ca;
$custom-light: #b37cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42ca",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 273.088,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54151,
    "c": 0.2034,
    "h": 306
  },
  "luminance": 0.13823
}

Semantic roles & 50–950 ramp

primary
#8D42CA
secondary
#B1D196
accent
#DF488C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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