#8D40D9#8D40D9

#8D40D9 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.0% C 0.221 H 302.6°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8D40D9
RGBrgb(141, 64, 217)
HSLhsl(270, 67%, 55%)
HSVhsv(270, 71%, 85%)
CMYKcmyk(35%, 70.5%, 0%, 14.9%)
CIE-LABlab(44.72, 60.10, -65.49)
CIE-LCHlch(44.72, 88.88, 312.54°)
OKLaboklab(55.01% 0.1194 -0.1865)
OKLCHoklch(55.01% 0.221 302.6)
XYZxyz(25.3393, 14.3392, 67.0650)
Luminance0.1434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40D9 #8CD940
analogous
#4040D9 #8D40D9 #D940D8
triadic
#8D40D9 #D98D40 #40D98D
tetradic
#8D40D9 #D94040 #8CD940 #40D8D9
square
#8D40D9 #D94040 #8CD940 #40D8D9
split-complementary
#8D40D9 #D8D940 #40D940
monochromatic
#501A84 #6E24B7 #8D40D9 #AB73E3 #CAA6ED

Accessibility & contrast

On white

5.43
#8D40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8D40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40D9
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40D9#FFFFFF#000000##FFFFFF
##8D40D91.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#0069D6
Tritanopia (blue-blind)
#7D6588
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8d40d9;
/* rgb */ color: rgb(141, 64, 217);
/* oklch */ color: oklch(55.0% 0.221 302.6);
Tailwind
colors: {
  custom: {
    50: '#b47be6',
    500: '#8d40d9',
    950: '#000000',
  },
}
SCSS
$custom: #8d40d9;
$custom-light: #b47be6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40d9",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 270.196,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55013,
    "c": 0.22143,
    "h": 302.6
  },
  "luminance": 0.14339
}

Semantic roles & 50–950 ramp

primary
#8D40D9
secondary
#BADA9A
accent
#EA3E93
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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