#8B42CC#8B42CC

#8B42CC is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.1% C 0.205 H 304.6°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8B42CC
RGBrgb(139, 66, 204)
HSLhsl(272, 58%, 53%)
HSVhsv(272, 68%, 80%)
CMYKcmyk(31.9%, 67.6%, 0%, 20%)
CIE-LABlab(43.87, 55.75, -59.40)
CIE-LCHlch(43.87, 81.46, 313.18°)
OKLaboklab(54.06% 0.1165 -0.1687)
OKLCHoklch(54.06% 0.205 304.6)
XYZxyz(23.4923, 13.7451, 58.5305)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42CC #83CC42
analogous
#4642CC #8B42CC #CC42C8
triadic
#8B42CC #CC8B42 #42CC8B
tetradic
#8B42CC #CC4642 #83CC42 #42C8CC
square
#8B42CC #CC4642 #83CC42 #42C8CC
split-complementary
#8B42CC #C8CC42 #42CC46
monochromatic
#4C1F74 #6C2CA4 #8B42CC #A972D9 #C6A2E6

Accessibility & contrast

On white

5.60
#8B42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8B42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42CC
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42CC#FFFFFF#000000##FFFFFF
##8B42CC1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#0D68C9
Tritanopia (blue-blind)
#7F6182
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8b42cc;
/* rgb */ color: rgb(139, 66, 204);
/* oklch */ color: oklch(54.1% 0.205 304.6);
Tailwind
colors: {
  custom: {
    50: '#b27cdc',
    500: '#8b42cc',
    950: '#000000',
  },
}
SCSS
$custom: #8b42cc;
$custom-light: #b27cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42cc",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 271.739,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54059,
    "c": 0.20503,
    "h": 304.6
  },
  "luminance": 0.13745
}

Semantic roles & 50–950 ramp

primary
#8B42CC
secondary
#B3D397
accent
#E1478F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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