#8D40DD#8D40DD

#8D40DD is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.3% C 0.226 H 301.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8D40DD
RGBrgb(141, 64, 221)
HSLhsl(269, 70%, 56%)
HSVhsv(269, 71%, 87%)
CMYKcmyk(36.2%, 71%, 0%, 13.3%)
CIE-LABlab(45.01, 61.04, -67.29)
CIE-LCHlch(45.01, 90.85, 312.21°)
OKLaboklab(55.32% 0.1187 -0.1918)
OKLCHoklch(55.32% 0.226 301.8)
XYZxyz(25.8659, 14.5499, 69.8383)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40DD #90DD40
analogous
#4041DD #8D40DD #DC40DD
triadic
#8D40DD #DD8D40 #40DD8D
tetradic
#8D40DD #DD4041 #90DD40 #40DDDC
square
#8D40DD #DD4041 #90DD40 #40DDDC
split-complementary
#8D40DD #DDDC40 #41DD40
monochromatic
#50198A #6E22BE #8D40DD #AC74E6 #CBA8EF

Accessibility & contrast

On white

5.37
#8D40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8D40DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40DD
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40DD#FFFFFF#000000##FFFFFF
##8D40DD1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E2
Deuteranopia (green-blind)
#006ADA
Tritanopia (blue-blind)
#7C668B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8d40dd;
/* rgb */ color: rgb(141, 64, 221);
/* oklch */ color: oklch(55.3% 0.226 301.8);
Tailwind
colors: {
  custom: {
    50: '#b47be9',
    500: '#8d40dd',
    950: '#000000',
  },
}
SCSS
$custom: #8d40dd;
$custom-light: #b47be9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40dd",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 269.427,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55315,
    "c": 0.22555,
    "h": 301.8
  },
  "luminance": 0.1455
}

Semantic roles & 50–950 ramp

primary
#8D40DD
secondary
#BDDD9C
accent
#ED3B96
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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