#8B40D1#8B40D1

#8B40D1 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.213 H 303.7°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8B40D1
RGBrgb(139, 64, 209)
HSLhsl(271, 61%, 54%)
HSVhsv(271, 69%, 82%)
CMYKcmyk(33.5%, 69.4%, 0%, 18%)
CIE-LABlab(43.89, 57.84, -62.25)
CIE-LCHlch(43.89, 84.98, 312.90°)
OKLaboklab(54.19% 0.1179 -0.1771)
OKLCHoklch(54.19% 0.213 303.7)
XYZxyz(23.9868, 13.7593, 61.7014)
Luminance0.1376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40D1 #86D140
analogous
#4240D1 #8B40D1 #D140CF
triadic
#8B40D1 #D18B40 #40D18B
tetradic
#8B40D1 #D14240 #86D140 #40CFD1
square
#8B40D1 #D14240 #86D140 #40CFD1
split-complementary
#8B40D1 #CFD140 #40D142
monochromatic
#4D1D79 #6C29AB #8B40D1 #A971DD #C7A3E9

Accessibility & contrast

On white

5.60
#8B40D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8B40D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40D1
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40D1#FFFFFF#000000##FFFFFF
##8B40D11.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0067CE
Tritanopia (blue-blind)
#7D6284
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8b40d1;
/* rgb */ color: rgb(139, 64, 209);
/* oklch */ color: oklch(54.2% 0.213 303.7);
Tailwind
colors: {
  custom: {
    50: '#b27be0',
    500: '#8b40d1',
    950: '#000000',
  },
}
SCSS
$custom: #8b40d1;
$custom-light: #b27be0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40d1",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 271.034,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54185,
    "c": 0.21274,
    "h": 303.7
  },
  "luminance": 0.13759
}

Semantic roles & 50–950 ramp

primary
#8B40D1
secondary
#B5D597
accent
#E44491
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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