#8B40DA#8B40DA

#8B40DA is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.9% C 0.222 H 301.6°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8B40DA
RGBrgb(139, 64, 218)
HSLhsl(269, 68%, 55%)
HSVhsv(269, 71%, 85%)
CMYKcmyk(36.2%, 70.6%, 0%, 14.5%)
CIE-LABlab(44.54, 59.96, -66.35)
CIE-LCHlch(44.54, 89.43, 312.11°)
OKLaboklab(54.86% 0.1165 -0.1891)
OKLCHoklch(54.86% 0.222 301.6)
XYZxyz(25.1327, 14.2176, 67.7363)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B40DA #8FDA40
analogous
#4042DA #8B40DA #D840DA
triadic
#8B40DA #DA8B40 #40DA8B
tetradic
#8B40DA #DA4042 #8FDA40 #40DAD8
square
#8B40DA #DA4042 #8FDA40 #40DAD8
split-complementary
#8B40DA #DAD840 #42DA40
monochromatic
#4E1A86 #6C24B9 #8B40DA #AA73E4 #C9A7EE

Accessibility & contrast

On white

5.46
#8B40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8B40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B40DA
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B40DA#FFFFFF#000000##FFFFFF
##8B40DA1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#7A6589
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8b40da;
/* rgb */ color: rgb(139, 64, 218);
/* oklch */ color: oklch(54.9% 0.222 301.6);
Tailwind
colors: {
  custom: {
    50: '#b37be6',
    500: '#8b40da',
    950: '#000000',
  },
}
SCSS
$custom: #8b40da;
$custom-light: #b37be6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b40da",
  "rgb": {
    "r": 139,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 269.221,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.5486,
    "c": 0.22209,
    "h": 301.6
  },
  "luminance": 0.14218
}

Semantic roles & 50–950 ramp

primary
#8B40DA
secondary
#BCDB9B
accent
#EA3D96
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8B40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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