#8A4CCA#8A4CCA

#8A4CCA is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.1% C 0.189 H 303.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8A4CCA
RGBrgb(138, 76, 202)
HSLhsl(270, 54%, 55%)
HSVhsv(270, 62%, 79%)
CMYKcmyk(31.7%, 62.4%, 0%, 20.8%)
CIE-LABlab(45.41, 50.12, -55.76)
CIE-LCHlch(45.41, 74.97, 311.95°)
OKLaboklab(55.1% 0.1041 -0.1581)
OKLCHoklch(55.1% 0.189 303.4)
XYZxyz(23.7239, 14.8365, 57.4795)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CCA #8CCA4C
analogous
#4C4DCA #8A4CCA #C94CCA
triadic
#8A4CCA #CA8A4C #4CCA8A
tetradic
#8A4CCA #CA4C4D #8CCA4C #4CCAC9
square
#8A4CCA #CA4C4D #8CCA4C #4CCAC9
split-complementary
#8A4CCA #CAC94C #4DCA4C
monochromatic
#4D2478 #6B32A7 #8A4CCA #A97BD8 #C8AAE6

Accessibility & contrast

On white

5.29
#8A4CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8A4CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CCA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CCA#FFFFFF#000000##FFFFFF
##8A4CCA1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#286BC7
Tritanopia (blue-blind)
#7E6784
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4cca;
/* rgb */ color: rgb(138, 76, 202);
/* oklch */ color: oklch(55.1% 0.189 303.4);
Tailwind
colors: {
  custom: {
    50: '#b081db',
    500: '#8a4cca',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cca;
$custom-light: #b081db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cca",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 202
  },
  "hsl": {
    "h": 269.524,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55102,
    "c": 0.18928,
    "h": 303.4
  },
  "luminance": 0.14836
}

Semantic roles & 50–950 ramp

primary
#8A4CCA
secondary
#B9D49E
accent
#DE4A95
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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