#8A4DC5#8A4DC5

#8A4DC5 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.9% C 0.182 H 304.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8A4DC5
RGBrgb(138, 77, 197)
HSLhsl(271, 51%, 54%)
HSVhsv(271, 61%, 77%)
CMYKcmyk(29.9%, 60.9%, 0%, 22.7%)
CIE-LABlab(45.28, 48.39, -53.08)
CIE-LCHlch(45.28, 71.83, 312.36°)
OKLaboklab(54.9% 0.1032 -0.1502)
OKLCHoklch(54.9% 0.182 304.5)
XYZxyz(23.2109, 14.7423, 54.4353)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DC5 #88C54D
analogous
#4E4DC5 #8A4DC5 #C54DC4
triadic
#8A4DC5 #C58A4D #4DC58A
tetradic
#8A4DC5 #C54E4D #88C54D #4DC4C5
square
#8A4DC5 #C54E4D #88C54D #4DC4C5
split-complementary
#8A4DC5 #C4C54D #4DC54E
monochromatic
#4C2572 #6B34A0 #8A4DC5 #A87BD4 #C7A9E3

Accessibility & contrast

On white

5.32
#8A4DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8A4DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DC5
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DC5#FFFFFF#000000##FFFFFF
##8A4DC51.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086AC9
Deuteranopia (green-blind)
#306BC2
Tritanopia (blue-blind)
#7F6682
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4dc5;
/* rgb */ color: rgb(138, 77, 197);
/* oklch */ color: oklch(54.9% 0.182 304.5);
Tailwind
colors: {
  custom: {
    50: '#b082d7',
    500: '#8a4dc5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dc5;
$custom-light: #b082d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dc5",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 270.5,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54904,
    "c": 0.18221,
    "h": 304.5
  },
  "luminance": 0.14742
}

Semantic roles & 50–950 ramp

primary
#8A4DC5
secondary
#B6D19D
accent
#DA4D93
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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