#8A4DC4#8A4DC4

#8A4DC4 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.181 H 304.7°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8A4DC4
RGBrgb(138, 77, 196)
HSLhsl(271, 50%, 54%)
HSVhsv(271, 61%, 77%)
CMYKcmyk(29.6%, 60.7%, 0%, 23.1%)
CIE-LABlab(45.22, 48.15, -52.60)
CIE-LCHlch(45.22, 71.31, 312.47°)
OKLaboklab(54.84% 0.1032 -0.1488)
OKLCHoklch(54.84% 0.181 304.7)
XYZxyz(23.0967, 14.6967, 53.8338)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DC4 #87C44D
analogous
#4E4DC4 #8A4DC4 #C44DC3
triadic
#8A4DC4 #C48A4D #4DC48A
tetradic
#8A4DC4 #C44E4D #87C44D #4DC3C4
square
#8A4DC4 #C44E4D #87C44D #4DC3C4
split-complementary
#8A4DC4 #C3C44D #4DC44E
monochromatic
#4C2571 #6B359F #8A4DC4 #A87BD3 #C6A9E2

Accessibility & contrast

On white

5.33
#8A4DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8A4DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DC4
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DC4#FFFFFF#000000##FFFFFF
##8A4DC41.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C69C8
Deuteranopia (green-blind)
#326BC1
Tritanopia (blue-blind)
#806581
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4dc4;
/* rgb */ color: rgb(138, 77, 196);
/* oklch */ color: oklch(54.8% 0.181 304.7);
Tailwind
colors: {
  custom: {
    50: '#b082d6',
    500: '#8a4dc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dc4;
$custom-light: #b082d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dc4",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 196
  },
  "hsl": {
    "h": 270.756,
    "s": 50.211,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54838,
    "c": 0.18107,
    "h": 304.7
  },
  "luminance": 0.14697
}

Semantic roles & 50–950 ramp

primary
#8A4DC4
secondary
#B6D09D
accent
#DA4E92
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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