#8D40D4#8D40D4

#8D40D4 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.6% C 0.216 H 303.8°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8D40D4
RGBrgb(141, 64, 212)
HSLhsl(271, 63%, 54%)
HSVhsv(271, 70%, 83%)
CMYKcmyk(33.5%, 69.8%, 0%, 16.9%)
CIE-LABlab(44.35, 58.93, -63.21)
CIE-LCHlch(44.35, 86.42, 312.99°)
OKLaboklab(54.64% 0.1202 -0.1798)
OKLCHoklch(54.64% 0.216 303.8)
XYZxyz(24.6988, 14.0830, 63.6917)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40D4 #87D440
analogous
#4340D4 #8D40D4 #D440D1
triadic
#8D40D4 #D48D40 #40D48D
tetradic
#8D40D4 #D44340 #87D440 #40D1D4
square
#8D40D4 #D44340 #87D440 #40D1D4
split-complementary
#8D40D4 #D1D440 #40D443
monochromatic
#4F1C7D #6E27AF #8D40D4 #AB72DF #C9A4EA

Accessibility & contrast

On white

5.50
#8D40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8D40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40D4
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40D4#FFFFFF#000000##FFFFFF
##8D40D41.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8d40d4;
/* rgb */ color: rgb(141, 64, 212);
/* oklch */ color: oklch(54.6% 0.216 303.8);
Tailwind
colors: {
  custom: {
    50: '#b47be2',
    500: '#8d40d4',
    950: '#000000',
  },
}
SCSS
$custom: #8d40d4;
$custom-light: #b47be2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40d4",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 271.216,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.5464,
    "c": 0.21627,
    "h": 303.8
  },
  "luminance": 0.14083
}

Semantic roles & 50–950 ramp

primary
#8D40D4
secondary
#B7D798
accent
#E64291
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8D40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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