#A878FB#A878FB

#A878FB is a light, vivid violet. Relative luminance 0.287; OKLCH L 67.9% C 0.189 H 298.1°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#A878FB
RGBrgb(168, 120, 251)
HSLhsl(262, 94%, 73%)
HSVhsv(262, 52%, 98%)
CMYKcmyk(33.1%, 52.2%, 0%, 1.6%)
CIE-LABlab(60.54, 45.65, -58.93)
CIE-LCHlch(60.54, 74.54, 307.76°)
OKLaboklab(67.88% 0.089 -0.1665)
OKLCHoklch(67.88% 0.189 298.1)
XYZxyz(40.2732, 28.7224, 94.6703)
Luminance0.2872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A878FB #CBFB78
analogous
#7889FB #A878FB #EA78FB
triadic
#A878FB #FBA878 #78FBA8
tetradic
#A878FB #FB7889 #CBFB78 #78FBEA
square
#A878FB #FB7889 #CBFB78 #78FBEA
split-complementary
#A878FB #FBEA78 #89FB78
monochromatic
#5D07F1 #823DF9 #A878FB #CEB3FD #ECE1FE

Accessibility & contrast

On white

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

On black

6.74
#A878FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A878FB
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A878FB#FFFFFF#000000##000000
##A878FB1.003.116.746.74
#FFFFFF3.111.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4592FF
Deuteranopia (green-blind)
#5391F8
Tritanopia (blue-blind)
#9692AE
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #a878fb;
/* rgb */ color: rgb(168, 120, 251);
/* oklch */ color: oklch(67.9% 0.189 298.1);
Tailwind
colors: {
  custom: {
    50: '#c6a0fd',
    500: '#a878fb',
    950: '#000000',
  },
}
SCSS
$custom: #a878fb;
$custom-light: #c6a0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#a878fb",
  "rgb": {
    "r": 168,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 261.985,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.67876,
    "c": 0.18882,
    "h": 298.1
  },
  "luminance": 0.28723
}

Semantic roles & 50–950 ramp

primary
#A878FB
secondary
#EAF6D5
accent
#E60091
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F18
muted
#827E86

Preview Lab

Preview with #A878FB

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

Preview Lab → · Contrast checker → · Palette generator →

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