#8A4ED8#8A4ED8

#8A4ED8 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.4% C 0.202 H 299.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A4ED8
RGBrgb(138, 78, 216)
HSLhsl(266, 64%, 58%)
HSVhsv(266, 64%, 85%)
CMYKcmyk(36.1%, 63.9%, 0%, 15.3%)
CIE-LABlab(46.72, 52.53, -61.68)
CIE-LCHlch(46.72, 81.01, 310.42°)
OKLaboklab(56.35% 0.1009 -0.1754)
OKLCHoklch(56.35% 0.202 299.9)
XYZxyz(25.5973, 15.8097, 66.6554)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ED8 #9CD84E
analogous
#4E57D8 #8A4ED8 #CF4ED8
triadic
#8A4ED8 #D88A4E #4ED88A
tetradic
#8A4ED8 #D84E57 #9CD84E #4ED8CF
square
#8A4ED8 #D84E57 #9CD84E #4ED8CF
split-complementary
#8A4ED8 #D8CF4E #57D84E
monochromatic
#4F1F8D #6B2ABF #8A4ED8 #AB80E3 #CCB2EE

Accessibility & contrast

On white

5.05
#8A4ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A4ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ED8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ED8#FFFFFF#000000##FFFFFF
##8A4ED81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#086ED5
Tritanopia (blue-blind)
#796D8C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4ed8;
/* rgb */ color: rgb(138, 78, 216);
/* oklch */ color: oklch(56.4% 0.202 299.9);
Tailwind
colors: {
  custom: {
    50: '#b183e5',
    500: '#8a4ed8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ed8;
$custom-light: #b183e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ed8",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 266.087,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5635,
    "c": 0.20238,
    "h": 299.9
  },
  "luminance": 0.1581
}

Semantic roles & 50–950 ramp

primary
#8A4ED8
secondary
#C5DDA5
accent
#E7419F
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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