#8B42CD#8B42CD

#8B42CD is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.1% C 0.206 H 304.4°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8B42CD
RGBrgb(139, 66, 205)
HSLhsl(272, 58%, 53%)
HSVhsv(272, 68%, 80%)
CMYKcmyk(32.2%, 67.8%, 0%, 19.6%)
CIE-LABlab(43.94, 55.98, -59.87)
CIE-LCHlch(43.94, 81.96, 313.08°)
OKLaboklab(54.13% 0.1164 -0.17)
OKLCHoklch(54.13% 0.206 304.4)
XYZxyz(23.6126, 13.7933, 59.1642)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42CD #84CD42
analogous
#4542CD #8B42CD #CD42C9
triadic
#8B42CD #CD8B42 #42CD8B
tetradic
#8B42CD #CD4542 #84CD42 #42C9CD
square
#8B42CD #CD4542 #84CD42 #42C9CD
split-complementary
#8B42CD #C9CD42 #42CD45
monochromatic
#4C1F76 #6C2CA6 #8B42CD #A972DA #C6A3E7

Accessibility & contrast

On white

5.59
#8B42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8B42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42CD
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42CD#FFFFFF#000000##FFFFFF
##8B42CD1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0868CA
Tritanopia (blue-blind)
#7F6182
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8b42cd;
/* rgb */ color: rgb(139, 66, 205);
/* oklch */ color: oklch(54.1% 0.206 304.4);
Tailwind
colors: {
  custom: {
    50: '#b27cdd',
    500: '#8b42cd',
    950: '#000000',
  },
}
SCSS
$custom: #8b42cd;
$custom-light: #b27cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42cd",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 271.511,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54131,
    "c": 0.20608,
    "h": 304.4
  },
  "luminance": 0.13793
}

Semantic roles & 50–950 ramp

primary
#8B42CD
secondary
#B4D397
accent
#E14690
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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