#8A4ECC#8A4ECC

#8A4ECC is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.5% C 0.189 H 302.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A4ECC
RGBrgb(138, 78, 204)
HSLhsl(269, 55%, 55%)
HSVhsv(269, 62%, 80%)
CMYKcmyk(32.4%, 61.8%, 0%, 20%)
CIE-LABlab(45.92, 49.57, -56.09)
CIE-LCHlch(45.92, 74.85, 311.47°)
OKLaboklab(55.52% 0.1017 -0.159)
OKLCHoklch(55.52% 0.189 302.6)
XYZxyz(24.1022, 15.2117, 58.7814)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ECC #90CC4E
analogous
#4E51CC #8A4ECC #C94ECC
triadic
#8A4ECC #CC8A4E #4ECC8A
tetradic
#8A4ECC #CC4E51 #90CC4E #4ECCC9
square
#8A4ECC #CC4E51 #90CC4E #4ECCC9
split-complementary
#8A4ECC #CCC94E #51CC4E
monochromatic
#4E247C #6B31AB #8A4ECC #A97EDA #C9ADE7

Accessibility & contrast

On white

5.19
#8A4ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8A4ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ECC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ECC#FFFFFF#000000##FFFFFF
##8A4ECC1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#286CC9
Tritanopia (blue-blind)
#7D6986
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4ecc;
/* rgb */ color: rgb(138, 78, 204);
/* oklch */ color: oklch(55.5% 0.189 302.6);
Tailwind
colors: {
  custom: {
    50: '#b083dc',
    500: '#8a4ecc',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ecc;
$custom-light: #b083dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ecc",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 204
  },
  "hsl": {
    "h": 268.571,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55516,
    "c": 0.18875,
    "h": 302.6
  },
  "luminance": 0.15212
}

Semantic roles & 50–950 ramp

primary
#8A4ECC
secondary
#BCD5A1
accent
#DF4997
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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