#8A4CD8#8A4CD8

#8A4CD8 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.1% C 0.205 H 300.2°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A4CD8
RGBrgb(138, 76, 216)
HSLhsl(267, 64%, 57%)
HSVhsv(267, 65%, 85%)
CMYKcmyk(36.1%, 64.8%, 0%, 15.3%)
CIE-LABlab(46.35, 53.54, -62.28)
CIE-LCHlch(46.35, 82.13, 310.69°)
OKLaboklab(56.08% 0.1031 -0.1772)
OKLCHoklch(56.08% 0.205 300.2)
XYZxyz(25.4573, 15.5298, 66.6088)
Luminance0.1553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CD8 #9AD84C
analogous
#4C54D8 #8A4CD8 #D04CD8
triadic
#8A4CD8 #D88A4C #4CD88A
tetradic
#8A4CD8 #D84C54 #9AD84C #4CD8D0
square
#8A4CD8 #D84C54 #9AD84C #4CD8D0
split-complementary
#8A4CD8 #D8D04C #54D84C
monochromatic
#4F1E8B #6B29BE #8A4CD8 #AB7EE3 #CCB1EE

Accessibility & contrast

On white

5.11
#8A4CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8A4CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CD8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CD8#FFFFFF#000000##FFFFFF
##8A4CD81.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#006DD5
Tritanopia (blue-blind)
#796C8B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4cd8;
/* rgb */ color: rgb(138, 76, 216);
/* oklch */ color: oklch(56.1% 0.205 300.2);
Tailwind
colors: {
  custom: {
    50: '#b182e5',
    500: '#8a4cd8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cd8;
$custom-light: #b182e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cd8",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 266.571,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56082,
    "c": 0.205,
    "h": 300.2
  },
  "luminance": 0.1553
}

Semantic roles & 50–950 ramp

primary
#8A4CD8
secondary
#C3DCA4
accent
#E7419D
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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