#A878F8#A878F8

#A878F8 is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.7% C 0.185 H 298.7°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#A878F8
RGBrgb(168, 120, 248)
HSLhsl(263, 90%, 72%)
HSVhsv(263, 52%, 97%)
CMYKcmyk(32.3%, 51.6%, 0%, 2.7%)
CIE-LABlab(60.37, 44.91, -57.54)
CIE-LCHlch(60.37, 72.99, 307.97°)
OKLaboklab(67.7% 0.0888 -0.1625)
OKLCHoklch(67.7% 0.185 298.7)
XYZxyz(39.8041, 28.5347, 92.1994)
Luminance0.2853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A878F8 #C8F878
analogous
#7888F8 #A878F8 #E878F8
triadic
#A878F8 #F8A878 #78F8A8
tetradic
#A878F8 #F87888 #C8F878 #78F8E8
square
#A878F8 #F87888 #C8F878 #78F8E8
split-complementary
#A878F8 #F8E878 #88F878
monochromatic
#5F0CE9 #833EF5 #A878F8 #CDB2FB #ECE2FD

Accessibility & contrast

On white

3.13
#A878F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#A878F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A878F8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A878F8#FFFFFF#000000##000000
##A878F81.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4892FC
Deuteranopia (green-blind)
#5590F5
Tritanopia (blue-blind)
#9791AD
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #a878f8;
/* rgb */ color: rgb(168, 120, 248);
/* oklch */ color: oklch(67.7% 0.185 298.7);
Tailwind
colors: {
  custom: {
    50: '#c5a0fb',
    500: '#a878f8',
    950: '#000000',
  },
}
SCSS
$custom: #a878f8;
$custom-light: #c5a0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#a878f8",
  "rgb": {
    "r": 168,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 262.5,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67698,
    "c": 0.18515,
    "h": 298.7
  },
  "luminance": 0.28535
}

Semantic roles & 50–950 ramp

primary
#A878F8
secondary
#EAF6D5
accent
#E6008F
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F17
muted
#827E85

Preview Lab

Preview with #A878F8

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

Preview Lab → · Contrast checker → · Palette generator →

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