#8A4CC5#8A4CC5

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

Color values

HEX#8A4CC5
RGBrgb(138, 76, 197)
HSLhsl(271, 51%, 54%)
HSVhsv(271, 61%, 77%)
CMYKcmyk(29.9%, 61.4%, 0%, 22.7%)
CIE-LABlab(45.09, 48.91, -53.39)
CIE-LCHlch(45.09, 72.41, 312.49°)
OKLaboklab(54.76% 0.1044 -0.1511)
OKLCHoklch(54.76% 0.184 304.6)
XYZxyz(23.1415, 14.6035, 54.4121)
Luminance0.1460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CC5 #87C54C
analogous
#4D4CC5 #8A4CC5 #C54CC3
triadic
#8A4CC5 #C58A4C #4CC58A
tetradic
#8A4CC5 #C54D4C #87C54C #4CC3C5
square
#8A4CC5 #C54D4C #87C54C #4CC3C5
split-complementary
#8A4CC5 #C3C54C #4CC54D
monochromatic
#4C2572 #6B34A0 #8A4CC5 #A87AD4 #C6A8E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A4CC5#FFFFFF#000000##FFFFFF
##8A4CC51.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)
#0169C9
Deuteranopia (green-blind)
#2F6BC2
Tritanopia (blue-blind)
#7F6581
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4cc5;
/* rgb */ color: rgb(138, 76, 197);
/* oklch */ color: oklch(54.8% 0.184 304.6);
Tailwind
colors: {
  custom: {
    50: '#b081d7',
    500: '#8a4cc5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cc5;
$custom-light: #b081d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cc5",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 197
  },
  "hsl": {
    "h": 270.744,
    "s": 51.055,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54764,
    "c": 0.18364,
    "h": 304.6
  },
  "luminance": 0.14603
}

Semantic roles & 50–950 ramp

primary
#8A4CC5
secondary
#B6D09C
accent
#DB4D92
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A4CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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