#C878FA#C878FA

#C878FA is a light, vivid violet. Relative luminance 0.326; OKLCH L 71.1% C 0.196 H 310.8°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#C878FA
RGBrgb(200, 120, 250)
HSLhsl(277, 93%, 73%)
HSVhsv(277, 52%, 98%)
CMYKcmyk(20%, 52%, 0%, 2%)
CIE-LABlab(63.85, 53.41, -52.90)
CIE-LCHlch(63.85, 75.18, 315.27°)
OKLaboklab(71.07% 0.1277 -0.1481)
OKLCHoklch(71.07% 0.196 310.8)
XYZxyz(47.7880, 32.6154, 94.2019)
Luminance0.3261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C878FA #AAFA78
analogous
#8778FA #C878FA #FA78EB
triadic
#C878FA #FAC878 #78FAC8
tetradic
#C878FA #FA8778 #AAFA78 #78EBFA
square
#C878FA #FA8778 #AAFA78 #78EBFA
split-complementary
#C878FA #EBFA78 #78FA87
monochromatic
#9609EF #B03DF8 #C878FA #E0B3FC #F3E1FE

Accessibility & contrast

On white

2.79
#C878FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#C878FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C878FA
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C878FA#FFFFFF#000000##000000
##C878FA1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5597FE
Deuteranopia (green-blind)
#6E9CF7
Tritanopia (blue-blind)
#C28EAE
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #c878fa;
/* rgb */ color: rgb(200, 120, 250);
/* oklch */ color: oklch(71.1% 0.196 310.8);
Tailwind
colors: {
  custom: {
    50: '#dba1fc',
    500: '#c878fa',
    950: '#000000',
  },
}
SCSS
$custom: #c878fa;
$custom-light: #dba1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#c878fa",
  "rgb": {
    "r": 200,
    "g": 120,
    "b": 250
  },
  "hsl": {
    "h": 276.923,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.7107,
    "c": 0.19554,
    "h": 310.8
  },
  "luminance": 0.32614
}

Semantic roles & 50–950 ramp

primary
#C878FA
secondary
#E2F6D5
accent
#E60058
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C878FA

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

Preview Lab → · Contrast checker → · Palette generator →

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