#8D40CC#8D40CC

#8D40CC is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.1% C 0.208 H 305.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8D40CC
RGBrgb(141, 64, 204)
HSLhsl(273, 58%, 53%)
HSVhsv(273, 69%, 80%)
CMYKcmyk(30.9%, 68.6%, 0%, 20%)
CIE-LABlab(43.78, 57.08, -59.52)
CIE-LCHlch(43.78, 82.47, 313.80°)
OKLaboklab(54.06% 0.1213 -0.169)
OKLCHoklch(54.06% 0.208 305.7)
XYZxyz(23.7146, 13.6893, 58.5080)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40CC #7FCC40
analogous
#4740CC #8D40CC #CC40C5
triadic
#8D40CC #CC8D40 #40CC8D
tetradic
#8D40CC #CC4740 #7FCC40 #40C5CC
square
#8D40CC #CC4740 #7FCC40 #40C5CC
split-complementary
#8D40CC #C5CC40 #40CC47
monochromatic
#4D1F73 #6D2CA3 #8D40CC #AA70D9 #C7A1E6

Accessibility & contrast

On white

5.62
#8D40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8D40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40CC
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40CC#FFFFFF#000000##FFFFFF
##8D40CC1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0E68C9
Tritanopia (blue-blind)
#826081
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8d40cc;
/* rgb */ color: rgb(141, 64, 204);
/* oklch */ color: oklch(54.1% 0.208 305.7);
Tailwind
colors: {
  custom: {
    50: '#b37bdc',
    500: '#8d40cc',
    950: '#000000',
  },
}
SCSS
$custom: #8d40cc;
$custom-light: #b37bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40cc",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 273,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54056,
    "c": 0.208,
    "h": 305.7
  },
  "luminance": 0.13689
}

Semantic roles & 50–950 ramp

primary
#8D40CC
secondary
#B1D295
accent
#E1478C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8D40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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