#8D4ED9#8D4ED9

#8D4ED9 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.204 H 300.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8D4ED9
RGBrgb(141, 78, 217)
HSLhsl(267, 65%, 58%)
HSVhsv(267, 64%, 85%)
CMYKcmyk(35%, 64.1%, 0%, 14.9%)
CIE-LABlab(47.13, 53.41, -61.57)
CIE-LCHlch(47.13, 81.50, 310.94°)
OKLaboklab(56.74% 0.1048 -0.175)
OKLCHoklch(56.74% 0.204 300.9)
XYZxyz(26.2303, 16.1211, 67.3620)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D4ED9 #9AD94E
analogous
#4E55D9 #8D4ED9 #D24ED9
triadic
#8D4ED9 #D98D4E #4ED98D
tetradic
#8D4ED9 #D94E55 #9AD94E #4ED9D2
square
#8D4ED9 #D94E55 #9AD94E #4ED9D2
split-complementary
#8D4ED9 #D9D24E #55D94E
monochromatic
#511F8E #6E29C0 #8D4ED9 #AD80E4 #CEB3EF

Accessibility & contrast

On white

4.97
#8D4ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#8D4ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D4ED9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D4ED9#FFFFFF#000000##FFFFFF
##8D4ED91.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#106FD6
Tritanopia (blue-blind)
#7D6D8D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8d4ed9;
/* rgb */ color: rgb(141, 78, 217);
/* oklch */ color: oklch(56.7% 0.204 300.9);
Tailwind
colors: {
  custom: {
    50: '#b383e6',
    500: '#8d4ed9',
    950: '#000000',
  },
}
SCSS
$custom: #8d4ed9;
$custom-light: #b383e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d4ed9",
  "rgb": {
    "r": 141,
    "g": 78,
    "b": 217
  },
  "hsl": {
    "h": 267.194,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56744,
    "c": 0.20399,
    "h": 300.9
  },
  "luminance": 0.16121
}

Semantic roles & 50–950 ramp

primary
#8D4ED9
secondary
#C4DDA6
accent
#E8409C
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8D4ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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