#8B40D0#8B40D0

#8B40D0 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.1% C 0.212 H 303.9°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8B40D0
RGBrgb(139, 64, 208)
HSLhsl(271, 61%, 53%)
HSVhsv(271, 69%, 82%)
CMYKcmyk(33.2%, 69.2%, 0%, 18.4%)
CIE-LABlab(43.81, 57.61, -61.79)
CIE-LCHlch(43.81, 84.48, 312.99°)
OKLaboklab(54.11% 0.1181 -0.1757)
OKLCHoklch(54.11% 0.212 303.9)
XYZxyz(23.8634, 13.7099, 61.0514)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40D0 #85D040
analogous
#4340D0 #8B40D0 #D040CD
triadic
#8B40D0 #D08B40 #40D08B
tetradic
#8B40D0 #D04340 #85D040 #40CDD0
square
#8B40D0 #D04340 #85D040 #40CDD0
split-complementary
#8B40D0 #CDD040 #40D043
monochromatic
#4D1E78 #6C2AA9 #8B40D0 #A971DC #C7A2E8

Accessibility & contrast

On white

5.61
#8B40D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B40D0
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40D0#FFFFFF#000000##FFFFFF
##8B40D01.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D4
Deuteranopia (green-blind)
#0067CD
Tritanopia (blue-blind)
#7E6183
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8b40d0;
/* rgb */ color: rgb(139, 64, 208);
/* oklch */ color: oklch(54.1% 0.212 303.9);
Tailwind
colors: {
  custom: {
    50: '#b27bdf',
    500: '#8b40d0',
    950: '#000000',
  },
}
SCSS
$custom: #8b40d0;
$custom-light: #b27bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40d0",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 271.25,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54112,
    "c": 0.2117,
    "h": 303.9
  },
  "luminance": 0.1371
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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