#8A4DC2#8A4DC2

#8A4DC2 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.7% C 0.179 H 305.3°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8A4DC2
RGBrgb(138, 77, 194)
HSLhsl(271, 49%, 53%)
HSVhsv(271, 60%, 76%)
CMYKcmyk(28.9%, 60.3%, 0%, 23.9%)
CIE-LABlab(45.09, 47.67, -51.64)
CIE-LCHlch(45.09, 70.28, 312.71°)
OKLaboklab(54.71% 0.1032 -0.146)
OKLCHoklch(54.71% 0.179 305.3)
XYZxyz(22.8706, 14.6062, 52.6429)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DC2 #85C24D
analogous
#4F4DC2 #8A4DC2 #C24DBF
triadic
#8A4DC2 #C28A4D #4DC28A
tetradic
#8A4DC2 #C24F4D #85C24D #4DBFC2
square
#8A4DC2 #C24F4D #85C24D #4DBFC2
split-complementary
#8A4DC2 #BFC24D #4DC24F
monochromatic
#4C266F #6B369C #8A4DC2 #A87BD2 #C6A8E1

Accessibility & contrast

On white

5.36
#8A4DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#8A4DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DC2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DC2#FFFFFF#000000##FFFFFF
##8A4DC21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1369C6
Deuteranopia (green-blind)
#346BBF
Tritanopia (blue-blind)
#806480
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4dc2;
/* rgb */ color: rgb(138, 77, 194);
/* oklch */ color: oklch(54.7% 0.179 305.3);
Tailwind
colors: {
  custom: {
    50: '#b082d5',
    500: '#8a4dc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dc2;
$custom-light: #b082d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dc2",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 271.282,
    "s": 48.954,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54706,
    "c": 0.1788,
    "h": 305.3
  },
  "luminance": 0.14606
}

Semantic roles & 50–950 ramp

primary
#8A4DC2
secondary
#B4CF9C
accent
#D94F91
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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