#8B42CF#8B42CF

#8B42CF is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.3% C 0.208 H 303.9°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8B42CF
RGBrgb(139, 66, 207)
HSLhsl(271, 59%, 54%)
HSVhsv(271, 68%, 81%)
CMYKcmyk(32.9%, 68.1%, 0%, 18.8%)
CIE-LABlab(44.08, 56.45, -60.79)
CIE-LCHlch(44.08, 82.96, 312.88°)
OKLaboklab(54.28% 0.1162 -0.1728)
OKLCHoklch(54.28% 0.208 303.9)
XYZxyz(23.8556, 13.8905, 60.4437)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42CF #86CF42
analogous
#4442CF #8B42CF #CF42CC
triadic
#8B42CF #CF8B42 #42CF8B
tetradic
#8B42CF #CF4442 #86CF42 #42CCCF
square
#8B42CF #CF4442 #86CF42 #42CCCF
split-complementary
#8B42CF #CCCF42 #42CF44
monochromatic
#4D1F78 #6C2BA9 #8B42CF #A973DB #C7A4E8

Accessibility & contrast

On white

5.56
#8B42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8B42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42CF
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42CF#FFFFFF#000000##FFFFFF
##8B42CF1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#7E6283
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8b42cf;
/* rgb */ color: rgb(139, 66, 207);
/* oklch */ color: oklch(54.3% 0.208 303.9);
Tailwind
colors: {
  custom: {
    50: '#b27cdf',
    500: '#8b42cf',
    950: '#000000',
  },
}
SCSS
$custom: #8b42cf;
$custom-light: #b27cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42cf",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 271.064,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54276,
    "c": 0.20819,
    "h": 303.9
  },
  "luminance": 0.1389
}

Semantic roles & 50–950 ramp

primary
#8B42CF
secondary
#B5D598
accent
#E34591
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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