#8A4DCA#8A4DCA

#8A4DCA is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.2% C 0.188 H 303.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8A4DCA
RGBrgb(138, 77, 202)
HSLhsl(269, 54%, 55%)
HSVhsv(269, 62%, 79%)
CMYKcmyk(31.7%, 61.9%, 0%, 20.8%)
CIE-LABlab(45.60, 49.60, -55.45)
CIE-LCHlch(45.60, 74.40, 311.81°)
OKLaboklab(55.24% 0.103 -0.1572)
OKLCHoklch(55.24% 0.188 303.2)
XYZxyz(23.7933, 14.9753, 57.5027)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DCA #8DCA4D
analogous
#4D4ECA #8A4DCA #C94DCA
triadic
#8A4DCA #CA8A4D #4DCA8A
tetradic
#8A4DCA #CA4D4E #8DCA4D #4DCAC9
square
#8A4DCA #CA4D4E #8DCA4D #4DCAC9
split-complementary
#8A4DCA #CAC94D #4ECA4D
monochromatic
#4D2479 #6B32A8 #8A4DCA #A97CD8 #C8ABE6

Accessibility & contrast

On white

5.26
#8A4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A4DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DCA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DCA#FFFFFF#000000##FFFFFF
##8A4DCA1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#296CC7
Tritanopia (blue-blind)
#7E6784
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4dca;
/* rgb */ color: rgb(138, 77, 202);
/* oklch */ color: oklch(55.2% 0.188 303.2);
Tailwind
colors: {
  custom: {
    50: '#b082db',
    500: '#8a4dca',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dca;
$custom-light: #b082db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dca",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 269.28,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5524,
    "c": 0.18788,
    "h": 303.2
  },
  "luminance": 0.14975
}

Semantic roles & 50–950 ramp

primary
#8A4DCA
secondary
#BAD49F
accent
#DD4A96
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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