#8A4ED1#8A4ED1

#8A4ED1 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.9% C 0.194 H 301.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8A4ED1
RGBrgb(138, 78, 209)
HSLhsl(267, 59%, 56%)
HSVhsv(267, 63%, 82%)
CMYKcmyk(34%, 62.7%, 0%, 18%)
CIE-LABlab(46.25, 50.80, -58.43)
CIE-LCHlch(46.25, 77.42, 311.00°)
OKLaboklab(55.86% 0.1014 -0.1659)
OKLCHoklch(55.86% 0.194 301.4)
XYZxyz(24.7115, 15.4554, 61.9905)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ED1 #95D14E
analogous
#4E54D1 #8A4ED1 #CC4ED1
triadic
#8A4ED1 #D18A4E #4ED18A
tetradic
#8A4ED1 #D14E54 #95D14E #4ED1CC
square
#8A4ED1 #D14E54 #95D14E #4ED1CC
split-complementary
#8A4ED1 #D1CC4E #54D14E
monochromatic
#4E2283 #6B2FB3 #8A4ED1 #AA7FDE #CAAFEA

Accessibility & contrast

On white

5.13
#8A4ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A4ED1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ED1
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ED1#FFFFFF#000000##FFFFFF
##8A4ED11.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD5
Deuteranopia (green-blind)
#1F6DCE
Tritanopia (blue-blind)
#7B6A88
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4ed1;
/* rgb */ color: rgb(138, 78, 209);
/* oklch */ color: oklch(55.9% 0.194 301.4);
Tailwind
colors: {
  custom: {
    50: '#b183e0',
    500: '#8a4ed1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ed1;
$custom-light: #b183e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ed1",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 209
  },
  "hsl": {
    "h": 267.481,
    "s": 58.744,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55859,
    "c": 0.19444,
    "h": 301.4
  },
  "luminance": 0.15456
}

Semantic roles & 50–950 ramp

primary
#8A4ED1
secondary
#C0D8A2
accent
#E2469A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4ED1

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

Preview Lab → · Contrast checker → · Palette generator →

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