#8D42BA#8D42BA

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

Color values

HEX#8D42BA
RGBrgb(141, 66, 186)
HSLhsl(278, 48%, 49%)
HSVhsv(278, 65%, 73%)
CMYKcmyk(24.2%, 64.5%, 0%, 27.1%)
CIE-LABlab(42.92, 52.06, -50.44)
CIE-LCHlch(42.92, 72.49, 315.91°)
OKLaboklab(53.05% 0.1207 -0.1423)
OKLCHoklch(53.05% 0.187 310.3)
XYZxyz(21.7939, 13.1048, 47.8262)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D42BA #6FBA42
analogous
#5142BA #8D42BA #BA42AB
triadic
#8D42BA #BA8D42 #42BA8D
tetradic
#8D42BA #BA5142 #6FBA42 #42ABBA
square
#8D42BA #BA5142 #6FBA42 #42ABBA
split-complementary
#8D42BA #ABBA42 #42BA51
monochromatic
#492260 #6B328D #8D42BA #A86ECB #C39BDB

Accessibility & contrast

On white

5.80
#8D42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8D42BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D42BA
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D42BA#FFFFFF#000000##FFFFFF
##8D42BA1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#3367B7
Tritanopia (blue-blind)
#875A78
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8d42ba;
/* rgb */ color: rgb(141, 66, 186);
/* oklch */ color: oklch(53.1% 0.187 310.3);
Tailwind
colors: {
  custom: {
    50: '#b27bcf',
    500: '#8d42ba',
    950: '#000000',
  },
}
SCSS
$custom: #8d42ba;
$custom-light: #b27bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d42ba",
  "rgb": {
    "r": 141,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 277.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53054,
    "c": 0.18663,
    "h": 310.3
  },
  "luminance": 0.13104
}

Semantic roles & 50–950 ramp

primary
#8D42BA
secondary
#A5C890
accent
#D75183
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8D42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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