#8D40DA#8D40DA

#8D40DA is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.1% C 0.222 H 302.4°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8D40DA
RGBrgb(141, 64, 218)
HSLhsl(270, 68%, 55%)
HSVhsv(270, 71%, 85%)
CMYKcmyk(35.3%, 70.6%, 0%, 14.5%)
CIE-LABlab(44.79, 60.33, -65.94)
CIE-LCHlch(44.79, 89.37, 312.46°)
OKLaboklab(55.09% 0.1192 -0.1878)
OKLCHoklch(55.09% 0.222 302.4)
XYZxyz(25.4698, 14.3914, 67.7521)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40DA #8DDA40
analogous
#4040DA #8D40DA #DA40DA
triadic
#8D40DA #DA8D40 #40DA8D
tetradic
#8D40DA #DA4040 #8DDA40 #40DADA
square
#8D40DA #DA4040 #8DDA40 #40DADA
split-complementary
#8D40DA #DADA40 #40DA40
monochromatic
#501A86 #6E24B9 #8D40DA #AC73E4 #CAA7EE

Accessibility & contrast

On white

5.41
#8D40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8D40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40DA
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40DA#FFFFFF#000000##FFFFFF
##8D40DA1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#7D6589
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8d40da;
/* rgb */ color: rgb(141, 64, 218);
/* oklch */ color: oklch(55.1% 0.222 302.4);
Tailwind
colors: {
  custom: {
    50: '#b47be6',
    500: '#8d40da',
    950: '#000000',
  },
}
SCSS
$custom: #8d40da;
$custom-light: #b47be6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40da",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 270,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55088,
    "c": 0.22246,
    "h": 302.4
  },
  "luminance": 0.14391
}

Semantic roles & 50–950 ramp

primary
#8D40DA
secondary
#BBDB9B
accent
#EA3D94
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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