#8A4ED6#8A4ED6

#8A4ED6 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.2% C 0.200 H 300.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A4ED6
RGBrgb(138, 78, 214)
HSLhsl(266, 62%, 57%)
HSVhsv(266, 64%, 84%)
CMYKcmyk(35.5%, 63.6%, 0%, 16.1%)
CIE-LABlab(46.59, 52.03, -60.75)
CIE-LCHlch(46.59, 79.99, 310.58°)
OKLaboklab(56.21% 0.101 -0.1727)
OKLCHoklch(56.21% 0.2 300.3)
XYZxyz(25.3403, 15.7069, 65.3020)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ED6 #9AD64E
analogous
#4E56D6 #8A4ED6 #CE4ED6
triadic
#8A4ED6 #D68A4E #4ED68A
tetradic
#8A4ED6 #D64E56 #9AD64E #4ED6CE
square
#8A4ED6 #D64E56 #9AD64E #4ED6CE
split-complementary
#8A4ED6 #D6CE4E #56D64E
monochromatic
#4F208A #6B2BBB #8A4ED6 #AB80E2 #CCB1ED

Accessibility & contrast

On white

5.07
#8A4ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A4ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ED6
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ED6#FFFFFF#000000##FFFFFF
##8A4ED61.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#116DD3
Tritanopia (blue-blind)
#7A6C8B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4ed6;
/* rgb */ color: rgb(138, 78, 214);
/* oklch */ color: oklch(56.2% 0.200 300.3);
Tailwind
colors: {
  custom: {
    50: '#b183e3',
    500: '#8a4ed6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ed6;
$custom-light: #b183e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ed6",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 214
  },
  "hsl": {
    "h": 266.471,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56209,
    "c": 0.20012,
    "h": 300.3
  },
  "luminance": 0.15707
}

Semantic roles & 50–950 ramp

primary
#8A4ED6
secondary
#C3DBA4
accent
#E5429D
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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