#8D40D8#8D40D8

#8D40D8 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.220 H 302.8°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8D40D8
RGBrgb(141, 64, 216)
HSLhsl(270, 66%, 55%)
HSVhsv(270, 70%, 85%)
CMYKcmyk(34.7%, 70.4%, 0%, 15.3%)
CIE-LABlab(44.64, 59.86, -65.03)
CIE-LCHlch(44.64, 88.39, 312.63°)
OKLaboklab(54.94% 0.1196 -0.1852)
OKLCHoklch(54.94% 0.22 302.8)
XYZxyz(25.2097, 14.2874, 66.3820)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40D8 #8BD840
analogous
#4140D8 #8D40D8 #D840D7
triadic
#8D40D8 #D88D40 #40D88D
tetradic
#8D40D8 #D84140 #8BD840 #40D7D8
square
#8D40D8 #D84140 #8BD840 #40D7D8
split-complementary
#8D40D8 #D7D840 #40D841
monochromatic
#4F1B83 #6E25B6 #8D40D8 #AB73E2 #CAA6ED

Accessibility & contrast

On white

5.44
#8D40D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8D40D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40D8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40D8#FFFFFF#000000##FFFFFF
##8D40D81.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#0069D5
Tritanopia (blue-blind)
#7E6488
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8d40d8;
/* rgb */ color: rgb(141, 64, 216);
/* oklch */ color: oklch(54.9% 0.220 302.8);
Tailwind
colors: {
  custom: {
    50: '#b47be5',
    500: '#8d40d8',
    950: '#000000',
  },
}
SCSS
$custom: #8d40d8;
$custom-light: #b47be5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40d8",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 270.395,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54938,
    "c": 0.2204,
    "h": 302.8
  },
  "luminance": 0.14287
}

Semantic roles & 50–950 ramp

primary
#8D40D8
secondary
#B9DA9A
accent
#E93F93
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D40D8

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

Preview Lab → · Contrast checker → · Palette generator →

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