#8B42BC#8B42BC

#8B42BC is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.9% C 0.188 H 308.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8B42BC
RGBrgb(139, 66, 188)
HSLhsl(276, 48%, 50%)
HSVhsv(276, 65%, 74%)
CMYKcmyk(26.1%, 64.9%, 0%, 26.3%)
CIE-LABlab(42.79, 52.06, -51.84)
CIE-LCHlch(42.79, 73.47, 315.12°)
OKLaboklab(52.94% 0.118 -0.1465)
OKLCHoklch(52.94% 0.188 308.9)
XYZxyz(21.6710, 13.0166, 48.9380)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42BC #73BC42
analogous
#4E42BC #8B42BC #BC42B0
triadic
#8B42BC #BC8B42 #42BC8B
tetradic
#8B42BC #BC4E42 #73BC42 #42B0BC
square
#8B42BC #BC4E42 #73BC42 #42B0BC
split-complementary
#8B42BC #B0BC42 #42BC4E
monochromatic
#482261 #6A328F #8B42BC #A76FCC #C39CDC

Accessibility & contrast

On white

5.83
#8B42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8B42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42BC
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42BC#FFFFFF#000000##FFFFFF
##8B42BC1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#2E66B9
Tritanopia (blue-blind)
#845B79
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8b42bc;
/* rgb */ color: rgb(139, 66, 188);
/* oklch */ color: oklch(52.9% 0.188 308.9);
Tailwind
colors: {
  custom: {
    50: '#b17bd1',
    500: '#8b42bc',
    950: '#000000',
  },
}
SCSS
$custom: #8b42bc;
$custom-light: #b17bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42bc",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 275.902,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52943,
    "c": 0.1881,
    "h": 308.9
  },
  "luminance": 0.13016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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