#8A4ED2#8A4ED2

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

Color values

HEX#8A4ED2
RGBrgb(138, 78, 210)
HSLhsl(267, 59%, 56%)
HSVhsv(267, 63%, 82%)
CMYKcmyk(34.3%, 62.9%, 0%, 17.6%)
CIE-LABlab(46.32, 51.04, -58.90)
CIE-LCHlch(46.32, 77.94, 310.91°)
OKLaboklab(55.93% 0.1013 -0.1673)
OKLCHoklch(55.93% 0.196 301.2)
XYZxyz(24.8357, 15.5051, 62.6446)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ED2 #96D24E
analogous
#4E54D2 #8A4ED2 #CC4ED2
triadic
#8A4ED2 #D28A4E #4ED28A
tetradic
#8A4ED2 #D24E54 #96D24E #4ED2CC
square
#8A4ED2 #D24E54 #96D24E #4ED2CC
split-complementary
#8A4ED2 #D2CC4E #54D24E
monochromatic
#4E2284 #6B2EB5 #8A4ED2 #AA7FDE #CBB0EB

Accessibility & contrast

On white

5.12
#8A4ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8A4ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ED2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ED2#FFFFFF#000000##FFFFFF
##8A4ED21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#1D6DCF
Tritanopia (blue-blind)
#7B6B89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4ed2;
/* rgb */ color: rgb(138, 78, 210);
/* oklch */ color: oklch(55.9% 0.196 301.2);
Tailwind
colors: {
  custom: {
    50: '#b183e1',
    500: '#8a4ed2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ed2;
$custom-light: #b183e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ed2",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 267.273,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55929,
    "c": 0.19558,
    "h": 301.2
  },
  "luminance": 0.15505
}

Semantic roles & 50–950 ramp

primary
#8A4ED2
secondary
#C0D9A3
accent
#E3459B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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