#8D5ED4#8D5ED4

#8D5ED4 is a mid, vivid violet. Relative luminance 0.184; OKLCH L 58.7% C 0.176 H 299.3°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8D5ED4
RGBrgb(141, 94, 212)
HSLhsl(264, 58%, 60%)
HSVhsv(264, 56%, 83%)
CMYKcmyk(33.5%, 55.7%, 0%, 16.9%)
CIE-LABlab(50.00, 43.65, -54.10)
CIE-LCHlch(50.00, 69.51, 308.90°)
OKLaboklab(58.73% 0.086 -0.1531)
OKLCHoklch(58.73% 0.176 299.3)
XYZxyz(26.8680, 18.4214, 64.4147)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D5ED4 #A5D45E
analogous
#5E6AD4 #8D5ED4 #C85ED4
triadic
#8D5ED4 #D48D5E #5ED48D
tetradic
#8D5ED4 #D45E6A #A5D45E #5ED4C8
square
#8D5ED4 #D45E6A #A5D45E #5ED4C8
split-complementary
#8D5ED4 #D4C85E #6AD45E
monochromatic
#512791 #6C34C1 #8D5ED4 #AF8EE1 #D1BFEE

Accessibility & contrast

On white

4.48
#8D5ED4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#8D5ED4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D5ED4
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D5ED4#FFFFFF#000000##000000
##8D5ED41.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A77D8
Deuteranopia (green-blind)
#3B76D1
Tritanopia (blue-blind)
#7E7690
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8d5ed4;
/* rgb */ color: rgb(141, 94, 212);
/* oklch */ color: oklch(58.7% 0.176 299.3);
Tailwind
colors: {
  custom: {
    50: '#b28de2',
    500: '#8d5ed4',
    950: '#000000',
  },
}
SCSS
$custom: #8d5ed4;
$custom-light: #b28de2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d5ed4",
  "rgb": {
    "r": 141,
    "g": 94,
    "b": 212
  },
  "hsl": {
    "h": 263.898,
    "s": 57.843,
    "l": 60
  },
  "oklch": {
    "l": 0.58734,
    "c": 0.17562,
    "h": 299.3
  },
  "luminance": 0.18422
}

Semantic roles & 50–950 ramp

primary
#8D5ED4
secondary
#CCDEB0
accent
#E147A4
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8D5ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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