#8B42CB#8B42CB

#8B42CB is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.0% C 0.204 H 304.9°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8B42CB
RGBrgb(139, 66, 203)
HSLhsl(272, 57%, 53%)
HSVhsv(272, 67%, 80%)
CMYKcmyk(31.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(43.80, 55.51, -58.94)
CIE-LCHlch(43.80, 80.96, 313.29°)
OKLaboklab(53.99% 0.1167 -0.1673)
OKLCHoklch(53.99% 0.204 304.9)
XYZxyz(23.3728, 13.6973, 57.9009)
Luminance0.1370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42CB #82CB42
analogous
#4742CB #8B42CB #CB42C6
triadic
#8B42CB #CB8B42 #42CB8B
tetradic
#8B42CB #CB4742 #82CB42 #42C6CB
square
#8B42CB #CB4742 #82CB42 #42C6CB
split-complementary
#8B42CB #C6CB42 #42CB47
monochromatic
#4C2073 #6C2DA3 #8B42CB #A872D8 #C6A2E5

Accessibility & contrast

On white

5.62
#8B42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8B42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42CB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42CB#FFFFFF#000000##FFFFFF
##8B42CB1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#1168C8
Tritanopia (blue-blind)
#7F6181
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b42cb;
/* rgb */ color: rgb(139, 66, 203);
/* oklch */ color: oklch(54.0% 0.204 304.9);
Tailwind
colors: {
  custom: {
    50: '#b27bdc',
    500: '#8b42cb',
    950: '#000000',
  },
}
SCSS
$custom: #8b42cb;
$custom-light: #b27bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42cb",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 271.971,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53987,
    "c": 0.20397,
    "h": 304.9
  },
  "luminance": 0.13697
}

Semantic roles & 50–950 ramp

primary
#8B42CB
secondary
#B2D297
accent
#E0488F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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