#8D40D5#8D40D5

#8D40D5 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.7% C 0.217 H 303.5°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8D40D5
RGBrgb(141, 64, 213)
HSLhsl(271, 64%, 54%)
HSVhsv(271, 70%, 84%)
CMYKcmyk(33.8%, 70%, 0%, 16.5%)
CIE-LABlab(44.42, 59.16, -63.67)
CIE-LCHlch(44.42, 86.91, 312.90°)
OKLaboklab(54.71% 0.12 -0.1811)
OKLCHoklch(54.71% 0.217 303.5)
XYZxyz(24.8254, 14.1336, 64.3581)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40D5 #88D540
analogous
#4340D5 #8D40D5 #D540D2
triadic
#8D40D5 #D58D40 #40D58D
tetradic
#8D40D5 #D54340 #88D540 #40D2D5
square
#8D40D5 #D54340 #88D540 #40D2D5
split-complementary
#8D40D5 #D2D540 #40D543
monochromatic
#4F1C7F #6E27B1 #8D40D5 #AB72E0 #C9A4EB

Accessibility & contrast

On white

5.49
#8D40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8D40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40D5
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40D5#FFFFFF#000000##FFFFFF
##8D40D51.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#0069D2
Tritanopia (blue-blind)
#7F6386
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8d40d5;
/* rgb */ color: rgb(141, 64, 213);
/* oklch */ color: oklch(54.7% 0.217 303.5);
Tailwind
colors: {
  custom: {
    50: '#b47be3',
    500: '#8d40d5',
    950: '#000000',
  },
}
SCSS
$custom: #8d40d5;
$custom-light: #b47be3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40d5",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 271.007,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54714,
    "c": 0.21731,
    "h": 303.5
  },
  "luminance": 0.14134
}

Semantic roles & 50–950 ramp

primary
#8D40D5
secondary
#B7D899
accent
#E74191
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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