#8B42BF#8B42BF

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

Color values

HEX#8B42BF
RGBrgb(139, 66, 191)
HSLhsl(275, 49%, 50%)
HSVhsv(275, 65%, 75%)
CMYKcmyk(27.2%, 65.4%, 0%, 25.1%)
CIE-LABlab(42.98, 52.74, -53.28)
CIE-LCHlch(42.98, 74.97, 314.71°)
OKLaboklab(53.15% 0.1178 -0.1507)
OKLCHoklch(53.15% 0.191 308)
XYZxyz(21.9977, 13.1473, 50.6590)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42BF #76BF42
analogous
#4C42BF #8B42BF #BF42B4
triadic
#8B42BF #BF8B42 #42BF8B
tetradic
#8B42BF #BF4C42 #76BF42 #42B4BF
square
#8B42BF #BF4C42 #76BF42 #42B4BF
split-complementary
#8B42BF #B4BF42 #42BF4C
monochromatic
#492265 #6A3292 #8B42BF #A770CE #C39DDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B42BF#FFFFFF#000000##FFFFFF
##8B42BF1.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)
#0063C3
Deuteranopia (green-blind)
#2A66BC
Tritanopia (blue-blind)
#835C7B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8b42bf;
/* rgb */ color: rgb(139, 66, 191);
/* oklch */ color: oklch(53.1% 0.191 308.0);
Tailwind
colors: {
  custom: {
    50: '#b17bd3',
    500: '#8b42bf',
    950: '#000000',
  },
}
SCSS
$custom: #8b42bf;
$custom-light: #b17bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42bf",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 275.04,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53147,
    "c": 0.19128,
    "h": 308
  },
  "luminance": 0.13147
}

Semantic roles & 50–950 ramp

primary
#8B42BF
secondary
#AACA93
accent
#D94F88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8B42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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