#8A4CC4#8A4CC4

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

Color values

HEX#8A4CC4
RGBrgb(138, 76, 196)
HSLhsl(271, 50%, 53%)
HSVhsv(271, 61%, 77%)
CMYKcmyk(29.6%, 61.2%, 0%, 23.1%)
CIE-LABlab(45.02, 48.67, -52.91)
CIE-LCHlch(45.02, 71.89, 312.61°)
OKLaboklab(54.7% 0.1044 -0.1497)
OKLCHoklch(54.7% 0.183 304.9)
XYZxyz(23.0273, 14.5578, 53.8107)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CC4 #86C44C
analogous
#4E4CC4 #8A4CC4 #C44CC2
triadic
#8A4CC4 #C48A4C #4CC48A
tetradic
#8A4CC4 #C44E4C #86C44C #4CC2C4
square
#8A4CC4 #C44E4C #86C44C #4CC2C4
split-complementary
#8A4CC4 #C2C44C #4CC44E
monochromatic
#4C2571 #6B349F #8A4CC4 #A87AD3 #C6A8E2

Accessibility & contrast

On white

5.37
#8A4CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8A4CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CC4
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CC4#FFFFFF#000000##FFFFFF
##8A4CC41.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0669C8
Deuteranopia (green-blind)
#306BC1
Tritanopia (blue-blind)
#806581
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4cc4;
/* rgb */ color: rgb(138, 76, 196);
/* oklch */ color: oklch(54.7% 0.183 304.9);
Tailwind
colors: {
  custom: {
    50: '#b081d6',
    500: '#8a4cc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cc4;
$custom-light: #b081d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cc4",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 196
  },
  "hsl": {
    "h": 271,
    "s": 50.42,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54698,
    "c": 0.18251,
    "h": 304.9
  },
  "luminance": 0.14558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A4CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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