#8B42DA#8B42DA

#8B42DA is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.1% C 0.220 H 301.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8B42DA
RGBrgb(139, 66, 218)
HSLhsl(269, 67%, 56%)
HSVhsv(269, 70%, 85%)
CMYKcmyk(36.2%, 69.7%, 0%, 14.5%)
CIE-LABlab(44.87, 59.05, -65.82)
CIE-LCHlch(44.87, 88.43, 311.90°)
OKLaboklab(55.09% 0.1145 -0.1876)
OKLCHoklch(55.09% 0.22 301.4)
XYZxyz(25.2475, 14.4472, 67.7745)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42DA #91DA42
analogous
#4245DA #8B42DA #D742DA
triadic
#8B42DA #DA8B42 #42DA8B
tetradic
#8B42DA #DA4245 #91DA42 #42DAD7
square
#8B42DA #DA4245 #91DA42 #42DAD7
split-complementary
#8B42DA #DAD742 #45DA42
monochromatic
#4F1A87 #6C24BA #8B42DA #AA75E4 #CAA8EE

Accessibility & contrast

On white

5.40
#8B42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8B42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42DA
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42DA#FFFFFF#000000##FFFFFF
##8B42DA1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#7A6689
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8b42da;
/* rgb */ color: rgb(139, 66, 218);
/* oklch */ color: oklch(55.1% 0.220 301.4);
Tailwind
colors: {
  custom: {
    50: '#b37ce6',
    500: '#8b42da',
    950: '#000000',
  },
}
SCSS
$custom: #8b42da;
$custom-light: #b37ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42da",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 268.816,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5509,
    "c": 0.21977,
    "h": 301.4
  },
  "luminance": 0.14447
}

Semantic roles & 50–950 ramp

primary
#8B42DA
secondary
#BDDB9C
accent
#EA3E97
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8B42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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