#8A4DC6#8A4DC6

#8A4DC6 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.183 H 304.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8A4DC6
RGBrgb(138, 77, 198)
HSLhsl(270, 51%, 54%)
HSVhsv(270, 61%, 78%)
CMYKcmyk(30.3%, 61.1%, 0%, 22.4%)
CIE-LABlab(45.34, 48.63, -53.56)
CIE-LCHlch(45.34, 72.34, 312.24°)
OKLaboklab(54.97% 0.1031 -0.1516)
OKLCHoklch(54.97% 0.183 304.2)
XYZxyz(23.3259, 14.7883, 55.0407)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DC6 #89C64D
analogous
#4E4DC6 #8A4DC6 #C64DC5
triadic
#8A4DC6 #C68A4D #4DC68A
tetradic
#8A4DC6 #C64E4D #89C64D #4DC5C6
square
#8A4DC6 #C64E4D #89C64D #4DC5C6
split-complementary
#8A4DC6 #C5C64D #4DC64E
monochromatic
#4D2574 #6B34A2 #8A4DC6 #A87BD5 #C7AAE4

Accessibility & contrast

On white

5.31
#8A4DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8A4DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DC6
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DC6#FFFFFF#000000##FFFFFF
##8A4DC61.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046ACA
Deuteranopia (green-blind)
#2F6BC3
Tritanopia (blue-blind)
#7F6682
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4dc6;
/* rgb */ color: rgb(138, 77, 198);
/* oklch */ color: oklch(55.0% 0.183 304.2);
Tailwind
colors: {
  custom: {
    50: '#b082d8',
    500: '#8a4dc6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dc6;
$custom-light: #b082d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dc6",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 198
  },
  "hsl": {
    "h": 270.248,
    "s": 51.489,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54971,
    "c": 0.18334,
    "h": 304.2
  },
  "luminance": 0.14788
}

Semantic roles & 50–950 ramp

primary
#8A4DC6
secondary
#B7D19E
accent
#DB4D93
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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