#8D42BC#8D42BC

#8D42BC is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.2% C 0.189 H 309.7°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8D42BC
RGBrgb(141, 66, 188)
HSLhsl(277, 48%, 50%)
HSVhsv(277, 65%, 74%)
CMYKcmyk(25%, 64.9%, 0%, 26.3%)
CIE-LABlab(43.05, 52.51, -51.41)
CIE-LCHlch(43.05, 73.49, 315.61°)
OKLaboklab(53.19% 0.1206 -0.1451)
OKLCHoklch(53.19% 0.189 309.7)
XYZxyz(22.0080, 13.1904, 48.9538)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42BC #71BC42
analogous
#5042BC #8D42BC #BC42AE
triadic
#8D42BC #BC8D42 #42BC8D
tetradic
#8D42BC #BC5042 #71BC42 #42AEBC
square
#8D42BC #BC5042 #71BC42 #42AEBC
split-complementary
#8D42BC #AEBC42 #42BC50
monochromatic
#492261 #6B328F #8D42BC #A86FCC #C49CDC

Accessibility & contrast

On white

5.77
#8D42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8D42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42BC
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42BC#FFFFFF#000000##FFFFFF
##8D42BC1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#3067B9
Tritanopia (blue-blind)
#865B79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8d42bc;
/* rgb */ color: rgb(141, 66, 188);
/* oklch */ color: oklch(53.2% 0.189 309.7);
Tailwind
colors: {
  custom: {
    50: '#b27bd1',
    500: '#8d42bc',
    950: '#000000',
  },
}
SCSS
$custom: #8d42bc;
$custom-light: #b27bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42bc",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 276.885,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53187,
    "c": 0.18873,
    "h": 309.7
  },
  "luminance": 0.1319
}

Semantic roles & 50–950 ramp

primary
#8D42BC
secondary
#A7C991
accent
#D85084
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8D42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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