#8D4ED8#8D4ED8

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

Color values

HEX#8D4ED8
RGBrgb(141, 78, 216)
HSLhsl(267, 64%, 58%)
HSVhsv(267, 64%, 85%)
CMYKcmyk(34.7%, 63.9%, 0%, 15.3%)
CIE-LABlab(47.07, 53.16, -61.11)
CIE-LCHlch(47.07, 80.99, 311.02°)
OKLaboklab(56.67% 0.1049 -0.1737)
OKLCHoklch(56.67% 0.203 301.1)
XYZxyz(26.1006, 16.0692, 66.6790)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D4ED8 #99D84E
analogous
#4E54D8 #8D4ED8 #D24ED8
triadic
#8D4ED8 #D88D4E #4ED88D
tetradic
#8D4ED8 #D84E54 #99D84E #4ED8D2
square
#8D4ED8 #D84E54 #99D84E #4ED8D2
split-complementary
#8D4ED8 #D8D24E #54D84E
monochromatic
#511F8D #6E2ABF #8D4ED8 #AD80E3 #CEB2EE

Accessibility & contrast

On white

4.98
#8D4ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8D4ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D4ED8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D4ED8#FFFFFF#000000##FFFFFF
##8D4ED81.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#146FD5
Tritanopia (blue-blind)
#7D6C8C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8d4ed8;
/* rgb */ color: rgb(141, 78, 216);
/* oklch */ color: oklch(56.7% 0.203 301.1);
Tailwind
colors: {
  custom: {
    50: '#b383e5',
    500: '#8d4ed8',
    950: '#000000',
  },
}
SCSS
$custom: #8d4ed8;
$custom-light: #b383e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d4ed8",
  "rgb": {
    "r": 141,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 267.391,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56673,
    "c": 0.20287,
    "h": 301.1
  },
  "luminance": 0.16069
}

Semantic roles & 50–950 ramp

primary
#8D4ED8
secondary
#C3DDA5
accent
#E7419B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8D4ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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