#8D42BB#8D42BB

#8D42BB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.188 H 310.0°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8D42BB
RGBrgb(141, 66, 187)
HSLhsl(277, 48%, 50%)
HSVhsv(277, 65%, 73%)
CMYKcmyk(24.6%, 64.7%, 0%, 26.7%)
CIE-LABlab(42.98, 52.29, -50.93)
CIE-LCHlch(42.98, 72.99, 315.76°)
OKLaboklab(53.12% 0.1207 -0.1437)
OKLCHoklch(53.12% 0.188 310)
XYZxyz(21.9006, 13.1474, 48.3881)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42BB #70BB42
analogous
#5142BB #8D42BB #BB42AD
triadic
#8D42BB #BB8D42 #42BB8D
tetradic
#8D42BB #BB5142 #70BB42 #42ADBB
square
#8D42BB #BB5142 #70BB42 #42ADBB
split-complementary
#8D42BB #ADBB42 #42BB51
monochromatic
#492261 #6B328E #8D42BB #A86ECC #C39CDC

Accessibility & contrast

On white

5.79
#8D42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8D42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42BB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42BB#FFFFFF#000000##FFFFFF
##8D42BB1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#3267B8
Tritanopia (blue-blind)
#875A79
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8d42bb;
/* rgb */ color: rgb(141, 66, 187);
/* oklch */ color: oklch(53.1% 0.188 310.0);
Tailwind
colors: {
  custom: {
    50: '#b27bd0',
    500: '#8d42bb',
    950: '#000000',
  },
}
SCSS
$custom: #8d42bb;
$custom-light: #b27bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42bb",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 277.19,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5312,
    "c": 0.18767,
    "h": 310
  },
  "luminance": 0.13147
}

Semantic roles & 50–950 ramp

primary
#8D42BB
secondary
#A6C891
accent
#D75084
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8D42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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