#8B42BE#8B42BE

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

Color values

HEX#8B42BE
RGBrgb(139, 66, 190)
HSLhsl(275, 49%, 50%)
HSVhsv(275, 65%, 75%)
CMYKcmyk(26.8%, 65.3%, 0%, 25.5%)
CIE-LABlab(42.92, 52.51, -52.80)
CIE-LCHlch(42.92, 74.47, 314.84°)
OKLaboklab(53.08% 0.1179 -0.1493)
OKLCHoklch(53.08% 0.19 308.3)
XYZxyz(21.8880, 13.1034, 50.0814)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42BE #75BE42
analogous
#4D42BE #8B42BE #BE42B3
triadic
#8B42BE #BE8B42 #42BE8B
tetradic
#8B42BE #BE4D42 #75BE42 #42B3BE
square
#8B42BE #BE4D42 #75BE42 #42B3BE
split-complementary
#8B42BE #B3BE42 #42BE4D
monochromatic
#492263 #6A3291 #8B42BE #A770CE #C39DDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B42BE#FFFFFF#000000##FFFFFF
##8B42BE1.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)
#0063C2
Deuteranopia (green-blind)
#2B66BB
Tritanopia (blue-blind)
#835C7A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8b42be;
/* rgb */ color: rgb(139, 66, 190);
/* oklch */ color: oklch(53.1% 0.190 308.3);
Tailwind
colors: {
  custom: {
    50: '#b17bd2',
    500: '#8b42be',
    950: '#000000',
  },
}
SCSS
$custom: #8b42be;
$custom-light: #b17bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42be",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 275.323,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53079,
    "c": 0.19022,
    "h": 308.3
  },
  "luminance": 0.13103
}

Semantic roles & 50–950 ramp

primary
#8B42BE
secondary
#A9CA92
accent
#D84F88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8B42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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