#A878EC#A878EC

#A878EC is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.0% C 0.170 H 301.0°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#A878EC
RGBrgb(168, 120, 236)
HSLhsl(265, 75%, 70%)
HSVhsv(265, 49%, 93%)
CMYKcmyk(28.8%, 49.2%, 0%, 7.5%)
CIE-LABlab(59.72, 41.97, -51.93)
CIE-LCHlch(59.72, 66.77, 308.94°)
OKLaboklab(67.01% 0.0879 -0.1461)
OKLCHoklch(67.01% 0.17 301)
XYZxyz(38.0018, 27.8138, 82.7071)
Luminance0.2781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A878EC #BCEC78
analogous
#7882EC #A878EC #E278EC
triadic
#A878EC #ECA878 #78ECA8
tetradic
#A878EC #EC7882 #BCEC78 #78ECE2
square
#A878EC #EC7882 #BCEC78 #78ECE2
split-complementary
#A878EC #ECE278 #82EC78
monochromatic
#661DCD #8542E4 #A878EC #CBAEF4 #EDE3FB

Accessibility & contrast

On white

3.20
#A878EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#A878EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A878EC
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A878EC#FFFFFF#000000##000000
##A878EC1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#538FF0
Deuteranopia (green-blind)
#5F8FE9
Tritanopia (blue-blind)
#9B8DA7
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #a878ec;
/* rgb */ color: rgb(168, 120, 236);
/* oklch */ color: oklch(67.0% 0.170 301.0);
Tailwind
colors: {
  custom: {
    50: '#c5a0f3',
    500: '#a878ec',
    950: '#000000',
  },
}
SCSS
$custom: #a878ec;
$custom-light: #c5a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#a878ec",
  "rgb": {
    "r": 168,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 264.828,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.67006,
    "c": 0.17044,
    "h": 301
  },
  "luminance": 0.27814
}

Semantic roles & 50–950 ramp

primary
#A878EC
secondary
#E3F0D0
accent
#D70E84
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130F17
muted
#827E85

Preview Lab

Preview with #A878EC

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

Preview Lab → · Contrast checker → · Palette generator →

#A878EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva