#8A4CC2#8A4CC2

#8A4CC2 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.6% C 0.180 H 305.4°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8A4CC2
RGBrgb(138, 76, 194)
HSLhsl(272, 49%, 53%)
HSVhsv(272, 61%, 76%)
CMYKcmyk(28.9%, 60.8%, 0%, 23.9%)
CIE-LABlab(44.90, 48.20, -51.96)
CIE-LCHlch(44.90, 70.87, 312.85°)
OKLaboklab(54.57% 0.1045 -0.1469)
OKLCHoklch(54.57% 0.18 305.4)
XYZxyz(22.8012, 14.4674, 52.6198)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CC2 #84C24C
analogous
#4F4CC2 #8A4CC2 #C24CBF
triadic
#8A4CC2 #C28A4C #4CC28A
tetradic
#8A4CC2 #C24F4C #84C24C #4CBFC2
square
#8A4CC2 #C24F4C #84C24C #4CBFC2
split-complementary
#8A4CC2 #BFC24C #4CC24F
monochromatic
#4C266E #6B359C #8A4CC2 #A87AD2 #C6A7E1

Accessibility & contrast

On white

5.39
#8A4CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A4CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CC2
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CC2#FFFFFF#000000##FFFFFF
##8A4CC21.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E68C6
Deuteranopia (green-blind)
#336ABF
Tritanopia (blue-blind)
#806480
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4cc2;
/* rgb */ color: rgb(138, 76, 194);
/* oklch */ color: oklch(54.6% 0.180 305.4);
Tailwind
colors: {
  custom: {
    50: '#b081d5',
    500: '#8a4cc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cc2;
$custom-light: #b081d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cc2",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 271.525,
    "s": 49.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54565,
    "c": 0.18025,
    "h": 305.4
  },
  "luminance": 0.14467
}

Semantic roles & 50–950 ramp

primary
#8A4CC2
secondary
#B4CE9B
accent
#D94F90
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A4CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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