#8D3ED6#8D3ED6

#8D3ED6 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.6% C 0.221 H 303.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8D3ED6
RGBrgb(141, 62, 214)
HSLhsl(271, 65%, 54%)
HSVhsv(271, 71%, 84%)
CMYKcmyk(34.1%, 71%, 0%, 16.1%)
CIE-LABlab(44.18, 60.29, -64.64)
CIE-LCHlch(44.18, 88.39, 313.01°)
OKLaboklab(54.56% 0.1218 -0.184)
OKLCHoklch(54.56% 0.221 303.5)
XYZxyz(24.8419, 13.9630, 64.9917)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3ED6 #87D63E
analogous
#413ED6 #8D3ED6 #D63ED3
triadic
#8D3ED6 #D68D3E #3ED68D
tetradic
#8D3ED6 #D6413E #87D63E #3ED3D6
square
#8D3ED6 #D6413E #87D63E #3ED3D6
split-complementary
#8D3ED6 #D3D63E #3ED641
monochromatic
#4F1B7F #6E26B1 #8D3ED6 #AB70E1 #C9A3EB

Accessibility & contrast

On white

5.54
#8D3ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8D3ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D3ED6
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3ED6#FFFFFF#000000##FFFFFF
##8D3ED61.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DA
Deuteranopia (green-blind)
#0068D3
Tritanopia (blue-blind)
#7F6286
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8d3ed6;
/* rgb */ color: rgb(141, 62, 214);
/* oklch */ color: oklch(54.6% 0.221 303.5);
Tailwind
colors: {
  custom: {
    50: '#b47ae4',
    500: '#8d3ed6',
    950: '#000000',
  },
}
SCSS
$custom: #8d3ed6;
$custom-light: #b47ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3ed6",
  "rgb": {
    "r": 141,
    "g": 62,
    "b": 214
  },
  "hsl": {
    "h": 271.184,
    "s": 64.957,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54563,
    "c": 0.22067,
    "h": 303.5
  },
  "luminance": 0.13963
}

Semantic roles & 50–950 ramp

primary
#8D3ED6
secondary
#B7D898
accent
#E84091
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8D3ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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