#A878FC#A878FC

#A878FC is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.9% C 0.190 H 297.9°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#A878FC
RGBrgb(168, 120, 252)
HSLhsl(262, 96%, 73%)
HSVhsv(262, 52%, 99%)
CMYKcmyk(33.3%, 52.4%, 0%, 1.2%)
CIE-LABlab(60.59, 45.90, -59.39)
CIE-LCHlch(60.59, 75.06, 307.70°)
OKLaboklab(67.94% 0.089 -0.1679)
OKLCHoklch(67.94% 0.19 297.9)
XYZxyz(40.4313, 28.7856, 95.5026)
Luminance0.2879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A878FC #CCFC78
analogous
#788AFC #A878FC #EA78FC
triadic
#A878FC #FCA878 #78FCA8
tetradic
#A878FC #FC788A #CCFC78 #78FCEA
square
#A878FC #FC788A #CCFC78 #78FCEA
split-complementary
#A878FC #FCEA78 #8AFC78
monochromatic
#5C05F4 #813CFB #A878FC #CFB4FD #ECE1FE

Accessibility & contrast

On white

3.11
#A878FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#A878FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A878FC
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A878FC#FFFFFF#000000##000000
##A878FC1.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4492FF
Deuteranopia (green-blind)
#5291F9
Tritanopia (blue-blind)
#9692AF
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #a878fc;
/* rgb */ color: rgb(168, 120, 252);
/* oklch */ color: oklch(67.9% 0.190 297.9);
Tailwind
colors: {
  custom: {
    50: '#c6a0fe',
    500: '#a878fc',
    950: '#000000',
  },
}
SCSS
$custom: #a878fc;
$custom-light: #c6a0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#a878fc",
  "rgb": {
    "r": 168,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 261.818,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.67935,
    "c": 0.19004,
    "h": 297.9
  },
  "luminance": 0.28786
}

Semantic roles & 50–950 ramp

primary
#A878FC
secondary
#EAF7D4
accent
#E60092
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F18
muted
#827E86

Preview Lab

Preview with #A878FC

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

Preview Lab → · Contrast checker → · Palette generator →

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