#8D40CE#8D40CE

#8D40CE is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.2% C 0.210 H 305.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8D40CE
RGBrgb(141, 64, 206)
HSLhsl(273, 59%, 53%)
HSVhsv(273, 69%, 81%)
CMYKcmyk(31.6%, 68.9%, 0%, 19.2%)
CIE-LABlab(43.92, 57.54, -60.45)
CIE-LCHlch(43.92, 83.46, 313.59°)
OKLaboklab(54.2% 0.1211 -0.1717)
OKLCHoklch(54.2% 0.21 305.2)
XYZxyz(23.9560, 13.7859, 59.7795)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40CE #81CE40
analogous
#4640CE #8D40CE #CE40C8
triadic
#8D40CE #CE8D40 #40CE8D
tetradic
#8D40CE #CE4640 #81CE40 #40C8CE
square
#8D40CE #CE4640 #81CE40 #40C8CE
split-complementary
#8D40CE #C8CE40 #40CE46
monochromatic
#4D1E75 #6E2BA6 #8D40CE #AA71DA #C7A1E7

Accessibility & contrast

On white

5.59
#8D40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8D40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40CE
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40CE#FFFFFF#000000##FFFFFF
##8D40CE1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0468CB
Tritanopia (blue-blind)
#816082
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d40ce;
/* rgb */ color: rgb(141, 64, 206);
/* oklch */ color: oklch(54.2% 0.210 305.2);
Tailwind
colors: {
  custom: {
    50: '#b37bde',
    500: '#8d40ce',
    950: '#000000',
  },
}
SCSS
$custom: #8d40ce;
$custom-light: #b37bde;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40ce",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 272.535,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.542,
    "c": 0.21007,
    "h": 305.2
  },
  "luminance": 0.13786
}

Semantic roles & 50–950 ramp

primary
#8D40CE
secondary
#B2D496
accent
#E2458D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8D40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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