#8A4DCC#8A4DCC

#8A4DCC is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.4% C 0.190 H 302.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8A4DCC
RGBrgb(138, 77, 204)
HSLhsl(269, 55%, 55%)
HSVhsv(269, 62%, 80%)
CMYKcmyk(32.4%, 62.3%, 0%, 20%)
CIE-LABlab(45.73, 50.09, -56.40)
CIE-LCHlch(45.73, 75.43, 311.61°)
OKLaboklab(55.38% 0.1029 -0.1599)
OKLCHoklch(55.38% 0.19 302.7)
XYZxyz(24.0317, 15.0706, 58.7579)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DCC #8FCC4D
analogous
#4D4FCC #8A4DCC #CA4DCC
triadic
#8A4DCC #CC8A4D #4DCC8A
tetradic
#8A4DCC #CC4D4F #8FCC4D #4DCCCA
square
#8A4DCC #CC4D4F #8FCC4D #4DCCCA
split-complementary
#8A4DCC #CCCA4D #4FCC4D
monochromatic
#4E237B #6C31AB #8A4DCC #A97DDA #C9ACE7

Accessibility & contrast

On white

5.23
#8A4DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A4DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DCC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DCC#FFFFFF#000000##FFFFFF
##8A4DCC1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#266CC9
Tritanopia (blue-blind)
#7D6885
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4dcc;
/* rgb */ color: rgb(138, 77, 204);
/* oklch */ color: oklch(55.4% 0.190 302.7);
Tailwind
colors: {
  custom: {
    50: '#b082dc',
    500: '#8a4dcc',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dcc;
$custom-light: #b082dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dcc",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 204
  },
  "hsl": {
    "h": 268.819,
    "s": 55.459,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55377,
    "c": 0.19015,
    "h": 302.7
  },
  "luminance": 0.15071
}

Semantic roles & 50–950 ramp

primary
#8A4DCC
secondary
#BBD5A0
accent
#DF4997
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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