#8B42C8#8B42C8

#8B42C8 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.8% C 0.201 H 305.6°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8B42C8
RGBrgb(139, 66, 200)
HSLhsl(273, 55%, 52%)
HSVhsv(273, 67%, 78%)
CMYKcmyk(30.5%, 67%, 0%, 21.6%)
CIE-LABlab(43.59, 54.81, -57.54)
CIE-LCHlch(43.59, 79.47, 313.61°)
OKLaboklab(53.77% 0.117 -0.1632)
OKLCHoklch(53.77% 0.201 305.6)
XYZxyz(23.0187, 13.5557, 56.0362)
Luminance0.1356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42C8 #7FC842
analogous
#4842C8 #8B42C8 #C842C2
triadic
#8B42C8 #C88B42 #42C88B
tetradic
#8B42C8 #C84842 #7FC842 #42C2C8
square
#8B42C8 #C84842 #7FC842 #42C2C8
split-complementary
#8B42C8 #C2C842 #42C848
monochromatic
#4B206F #6B2E9F #8B42C8 #A871D6 #C5A1E4

Accessibility & contrast

On white

5.66
#8B42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8B42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42C8
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42C8#FFFFFF#000000##FFFFFF
##8B42C81.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#1A67C5
Tritanopia (blue-blind)
#806080
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b42c8;
/* rgb */ color: rgb(139, 66, 200);
/* oklch */ color: oklch(53.8% 0.201 305.6);
Tailwind
colors: {
  custom: {
    50: '#b17bd9',
    500: '#8b42c8',
    950: '#000000',
  },
}
SCSS
$custom: #8b42c8;
$custom-light: #b17bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42c8",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 272.687,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.53774,
    "c": 0.20079,
    "h": 305.6
  },
  "luminance": 0.13556
}

Semantic roles & 50–950 ramp

primary
#8B42C8
secondary
#B0D096
accent
#DE4A8D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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