#8B42CE#8B42CE

#8B42CE is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.207 H 304.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8B42CE
RGBrgb(139, 66, 206)
HSLhsl(271, 59%, 53%)
HSVhsv(271, 68%, 81%)
CMYKcmyk(32.5%, 68%, 0%, 19.2%)
CIE-LABlab(44.01, 56.21, -60.33)
CIE-LCHlch(44.01, 82.46, 312.98°)
OKLaboklab(54.2% 0.1163 -0.1714)
OKLCHoklch(54.2% 0.207 304.2)
XYZxyz(23.7337, 13.8417, 59.8019)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42CE #85CE42
analogous
#4542CE #8B42CE #CE42CB
triadic
#8B42CE #CE8B42 #42CE8B
tetradic
#8B42CE #CE4542 #85CE42 #42CBCE
square
#8B42CE #CE4542 #85CE42 #42CBCE
split-complementary
#8B42CE #CBCE42 #42CE45
monochromatic
#4D1F77 #6C2BA7 #8B42CE #A973DB #C7A3E7

Accessibility & contrast

On white

5.57
#8B42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8B42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42CE
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42CE#FFFFFF#000000##FFFFFF
##8B42CE1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0368CB
Tritanopia (blue-blind)
#7E6283
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8b42ce;
/* rgb */ color: rgb(139, 66, 206);
/* oklch */ color: oklch(54.2% 0.207 304.2);
Tailwind
colors: {
  custom: {
    50: '#b27cde',
    500: '#8b42ce',
    950: '#000000',
  },
}
SCSS
$custom: #8b42ce;
$custom-light: #b27cde;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42ce",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 271.286,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54203,
    "c": 0.20714,
    "h": 304.2
  },
  "luminance": 0.13842
}

Semantic roles & 50–950 ramp

primary
#8B42CE
secondary
#B5D498
accent
#E24691
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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