#8A4CD9#8A4CD9

#8A4CD9 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.2% C 0.206 H 300.0°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A4CD9
RGBrgb(138, 76, 217)
HSLhsl(266, 65%, 57%)
HSVhsv(266, 65%, 85%)
CMYKcmyk(36.4%, 65%, 0%, 14.9%)
CIE-LABlab(46.42, 53.79, -62.74)
CIE-LCHlch(46.42, 82.64, 310.61°)
OKLaboklab(56.15% 0.103 -0.1786)
OKLCHoklch(56.15% 0.206 300)
XYZxyz(25.5870, 15.5817, 67.2917)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CD9 #9BD94C
analogous
#4C54D9 #8A4CD9 #D14CD9
triadic
#8A4CD9 #D98A4C #4CD98A
tetradic
#8A4CD9 #D94C54 #9BD94C #4CD9D1
square
#8A4CD9 #D94C54 #9BD94C #4CD9D1
split-complementary
#8A4CD9 #D9D14C #54D94C
monochromatic
#4F1E8D #6B29BF #8A4CD9 #AB7EE4 #CCB1EE

Accessibility & contrast

On white

5.10
#8A4CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A4CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CD9
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CD9#FFFFFF#000000##FFFFFF
##8A4CD91.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#786C8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4cd9;
/* rgb */ color: rgb(138, 76, 217);
/* oklch */ color: oklch(56.2% 0.206 300.0);
Tailwind
colors: {
  custom: {
    50: '#b282e6',
    500: '#8a4cd9',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cd9;
$custom-light: #b282e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cd9",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 217
  },
  "hsl": {
    "h": 266.383,
    "s": 64.977,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56154,
    "c": 0.20612,
    "h": 300
  },
  "luminance": 0.15582
}

Semantic roles & 50–950 ramp

primary
#8A4CD9
secondary
#C4DDA4
accent
#E8409E
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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