#8B42D1#8B42D1

#8B42D1 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.210 H 303.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8B42D1
RGBrgb(139, 66, 209)
HSLhsl(271, 61%, 54%)
HSVhsv(271, 68%, 82%)
CMYKcmyk(33.5%, 68.4%, 0%, 18%)
CIE-LABlab(44.22, 56.92, -61.72)
CIE-LCHlch(44.22, 83.96, 312.68°)
OKLaboklab(54.42% 0.1159 -0.1755)
OKLCHoklch(54.42% 0.21 303.4)
XYZxyz(24.1016, 13.9889, 61.7396)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B42D1 #88D142
analogous
#4442D1 #8B42D1 #D142D0
triadic
#8B42D1 #D18B42 #42D18B
tetradic
#8B42D1 #D14442 #88D142 #42D0D1
square
#8B42D1 #D14442 #88D142 #42D0D1
split-complementary
#8B42D1 #D0D142 #42D144
monochromatic
#4D1E7B #6C2AAC #8B42D1 #A973DD #C7A4E9

Accessibility & contrast

On white

5.53
#8B42D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8B42D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B42D1
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B42D1#FFFFFF#000000##FFFFFF
##8B42D11.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D5
Deuteranopia (green-blind)
#0068CE
Tritanopia (blue-blind)
#7D6385
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8b42d1;
/* rgb */ color: rgb(139, 66, 209);
/* oklch */ color: oklch(54.4% 0.210 303.4);
Tailwind
colors: {
  custom: {
    50: '#b27ce0',
    500: '#8b42d1',
    950: '#000000',
  },
}
SCSS
$custom: #8b42d1;
$custom-light: #b27ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b42d1",
  "rgb": {
    "r": 139,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 270.629,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54422,
    "c": 0.2103,
    "h": 303.4
  },
  "luminance": 0.13989
}

Semantic roles & 50–950 ramp

primary
#8B42D1
secondary
#B7D699
accent
#E44492
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B42D1

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

Preview Lab → · Contrast checker → · Palette generator →

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