#8D40D6#8D40D6

#8D40D6 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.8% C 0.218 H 303.3°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8D40D6
RGBrgb(141, 64, 214)
HSLhsl(271, 65%, 55%)
HSVhsv(271, 70%, 84%)
CMYKcmyk(34.1%, 70.1%, 0%, 16.1%)
CIE-LABlab(44.50, 59.40, -64.12)
CIE-LCHlch(44.50, 87.40, 312.81°)
OKLaboklab(54.79% 0.1199 -0.1825)
OKLCHoklch(54.79% 0.218 303.3)
XYZxyz(24.9527, 14.1846, 65.0286)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40D6 #89D640
analogous
#4240D6 #8D40D6 #D640D4
triadic
#8D40D6 #D68D40 #40D68D
tetradic
#8D40D6 #D64240 #89D640 #40D4D6
square
#8D40D6 #D64240 #89D640 #40D4D6
split-complementary
#8D40D6 #D4D640 #40D642
monochromatic
#4F1B80 #6E26B2 #8D40D6 #AB72E1 #C9A5EC

Accessibility & contrast

On white

5.47
#8D40D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8D40D6
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40D6#FFFFFF#000000##FFFFFF
##8D40D61.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#0069D3
Tritanopia (blue-blind)
#7E6387
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8d40d6;
/* rgb */ color: rgb(141, 64, 214);
/* oklch */ color: oklch(54.8% 0.218 303.3);
Tailwind
colors: {
  custom: {
    50: '#b47be4',
    500: '#8d40d6',
    950: '#000000',
  },
}
SCSS
$custom: #8d40d6;
$custom-light: #b47be4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40d6",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 270.8,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54788,
    "c": 0.21834,
    "h": 303.3
  },
  "luminance": 0.14185
}

Semantic roles & 50–950 ramp

primary
#8D40D6
secondary
#B8D999
accent
#E84092
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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