#8D42C9#8D42C9

#8D42C9 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.1% C 0.202 H 306.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8D42C9
RGBrgb(141, 66, 201)
HSLhsl(273, 56%, 52%)
HSVhsv(273, 67%, 79%)
CMYKcmyk(29.9%, 67.2%, 0%, 21.2%)
CIE-LABlab(43.91, 55.46, -57.58)
CIE-LCHlch(43.91, 79.95, 313.93°)
OKLaboklab(54.08% 0.1195 -0.1633)
OKLCHoklch(54.08% 0.202 306.2)
XYZxyz(23.4731, 13.7764, 56.6695)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42C9 #7EC942
analogous
#4942C9 #8D42C9 #C942C2
triadic
#8D42C9 #C98D42 #42C98D
tetradic
#8D42C9 #C94942 #7EC942 #42C2C9
square
#8D42C9 #C94942 #7EC942 #42C2C9
split-complementary
#8D42C9 #C2C942 #42C949
monochromatic
#4D2070 #6D2EA0 #8D42C9 #AA72D7 #C6A1E4

Accessibility & contrast

On white

5.59
#8D42C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8D42C9
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42C9#FFFFFF#000000##FFFFFF
##8D42C91.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CD
Deuteranopia (green-blind)
#1C68C6
Tritanopia (blue-blind)
#836080
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d42c9;
/* rgb */ color: rgb(141, 66, 201);
/* oklch */ color: oklch(54.1% 0.202 306.2);
Tailwind
colors: {
  custom: {
    50: '#b37cda',
    500: '#8d42c9',
    950: '#000000',
  },
}
SCSS
$custom: #8d42c9;
$custom-light: #b37cda;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42c9",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 273.333,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54081,
    "c": 0.20235,
    "h": 306.2
  },
  "luminance": 0.13776
}

Semantic roles & 50–950 ramp

primary
#8D42C9
secondary
#B0D196
accent
#DF498C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D42C9

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

Preview Lab → · Contrast checker → · Palette generator →

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