#8B40D2#8B40D2

#8B40D2 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.214 H 303.4°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8B40D2
RGBrgb(139, 64, 210)
HSLhsl(271, 62%, 54%)
HSVhsv(271, 70%, 82%)
CMYKcmyk(33.8%, 69.5%, 0%, 17.6%)
CIE-LABlab(43.96, 58.08, -62.71)
CIE-LCHlch(43.96, 85.47, 312.80°)
OKLaboklab(54.26% 0.1178 -0.1784)
OKLCHoklch(54.26% 0.214 303.4)
XYZxyz(24.1110, 13.8089, 62.3554)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40D2 #87D240
analogous
#4240D2 #8B40D2 #D240D0
triadic
#8B40D2 #D28B40 #40D28B
tetradic
#8B40D2 #D24240 #87D240 #40D0D2
square
#8B40D2 #D24240 #87D240 #40D0D2
split-complementary
#8B40D2 #D0D240 #40D242
monochromatic
#4D1D7B #6C29AC #8B40D2 #A972DE #C7A3E9

Accessibility & contrast

On white

5.58
#8B40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B40D2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40D2#FFFFFF#000000##FFFFFF
##8B40D21.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#7D6284
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8b40d2;
/* rgb */ color: rgb(139, 64, 210);
/* oklch */ color: oklch(54.3% 0.214 303.4);
Tailwind
colors: {
  custom: {
    50: '#b27be1',
    500: '#8b40d2',
    950: '#000000',
  },
}
SCSS
$custom: #8b40d2;
$custom-light: #b27be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40d2",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 270.822,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54259,
    "c": 0.21378,
    "h": 303.4
  },
  "luminance": 0.13809
}

Semantic roles & 50–950 ramp

primary
#8B40D2
secondary
#B6D698
accent
#E54392
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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