#8A4ED9#8A4ED9

#8A4ED9 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.4% C 0.204 H 299.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A4ED9
RGBrgb(138, 78, 217)
HSLhsl(266, 65%, 58%)
HSVhsv(266, 64%, 85%)
CMYKcmyk(36.4%, 64.1%, 0%, 14.9%)
CIE-LABlab(46.79, 52.78, -62.14)
CIE-LCHlch(46.79, 81.52, 310.34°)
OKLaboklab(56.42% 0.1008 -0.1768)
OKLCHoklch(56.42% 0.204 299.7)
XYZxyz(25.7269, 15.8616, 67.3384)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ED9 #9DD94E
analogous
#4E58D9 #8A4ED9 #CF4ED9
triadic
#8A4ED9 #D98A4E #4ED98A
tetradic
#8A4ED9 #D94E58 #9DD94E #4ED9CF
square
#8A4ED9 #D94E58 #9DD94E #4ED9CF
split-complementary
#8A4ED9 #D9CF4E #58D94E
monochromatic
#4F1F8E #6B29C0 #8A4ED9 #AB80E4 #CDB3EF

Accessibility & contrast

On white

5.03
#8A4ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8A4ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ED9
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ED9#FFFFFF#000000##FFFFFF
##8A4ED91.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#026ED6
Tritanopia (blue-blind)
#786D8D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a4ed9;
/* rgb */ color: rgb(138, 78, 217);
/* oklch */ color: oklch(56.4% 0.204 299.7);
Tailwind
colors: {
  custom: {
    50: '#b183e6',
    500: '#8a4ed9',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ed9;
$custom-light: #b183e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ed9",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 217
  },
  "hsl": {
    "h": 265.899,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56422,
    "c": 0.20351,
    "h": 299.7
  },
  "luminance": 0.15862
}

Semantic roles & 50–950 ramp

primary
#8A4ED9
secondary
#C5DDA6
accent
#E8409F
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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