#8D42CB#8D42CB

#8D42CB is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.2% C 0.204 H 305.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8D42CB
RGBrgb(141, 66, 203)
HSLhsl(273, 57%, 53%)
HSVhsv(273, 67%, 80%)
CMYKcmyk(30.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(44.05, 55.93, -58.52)
CIE-LCHlch(44.05, 80.94, 313.70°)
OKLaboklab(54.22% 0.1193 -0.166)
OKLCHoklch(54.22% 0.204 305.7)
XYZxyz(23.7099, 13.8711, 57.9167)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42CB #80CB42
analogous
#4942CB #8D42CB #CB42C4
triadic
#8D42CB #CB8D42 #42CB8D
tetradic
#8D42CB #CB4942 #80CB42 #42C4CB
square
#8D42CB #CB4942 #80CB42 #42C4CB
split-complementary
#8D42CB #C4CB42 #42CB49
monochromatic
#4D2073 #6E2DA3 #8D42CB #AA72D8 #C7A2E5

Accessibility & contrast

On white

5.56
#8D42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8D42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42CB
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42CB#FFFFFF#000000##FFFFFF
##8D42CB1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#1768C8
Tritanopia (blue-blind)
#826081
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d42cb;
/* rgb */ color: rgb(141, 66, 203);
/* oklch */ color: oklch(54.2% 0.204 305.7);
Tailwind
colors: {
  custom: {
    50: '#b37cdc',
    500: '#8d42cb',
    950: '#000000',
  },
}
SCSS
$custom: #8d42cb;
$custom-light: #b37cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42cb",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 272.847,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54222,
    "c": 0.20445,
    "h": 305.7
  },
  "luminance": 0.13871
}

Semantic roles & 50–950 ramp

primary
#8D42CB
secondary
#B2D297
accent
#E0488D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8D42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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