#C878EF#C878EF

#C878EF is a light, vivid purple. Relative luminance 0.319; OKLCH L 70.5% C 0.184 H 313.6°. Best body text is #000000 at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#C878EF
RGBrgb(200, 120, 239)
HSLhsl(280, 79%, 70%)
HSVhsv(280, 50%, 94%)
CMYKcmyk(16.3%, 49.8%, 0%, 6.3%)
CIE-LABlab(63.30, 51.08, -47.71)
CIE-LCHlch(63.30, 69.90, 316.96°)
OKLaboklab(70.48% 0.1267 -0.133)
OKLCHoklch(70.48% 0.184 313.6)
XYZxyz(46.1133, 31.9455, 85.3815)
Luminance0.3194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C878EF #9FEF78
analogous
#8C78EF #C878EF #EF78DB
triadic
#C878EF #EFC878 #78EFC8
tetradic
#C878EF #EF8C78 #9FEF78 #78DBEF
square
#C878EF #EF8C78 #9FEF78 #78DBEF
split-complementary
#C878EF #DBEF78 #78EF8C
monochromatic
#9619D4 #B241E9 #C878EF #DEAFF5 #F4E4FC

Accessibility & contrast

On white

2.84
#C878EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#C878EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C878EF
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C878EF#FFFFFF#000000##000000
##C878EF1.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D95F3
Deuteranopia (green-blind)
#759BEC
Tritanopia (blue-blind)
#C58BA9
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #c878ef;
/* rgb */ color: rgb(200, 120, 239);
/* oklch */ color: oklch(70.5% 0.184 313.6);
Tailwind
colors: {
  custom: {
    50: '#dba1f5',
    500: '#c878ef',
    950: '#000000',
  },
}
SCSS
$custom: #c878ef;
$custom-light: #dba1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#c878ef",
  "rgb": {
    "r": 200,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 280.336,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.70484,
    "c": 0.18365,
    "h": 313.6
  },
  "luminance": 0.31944
}

Semantic roles & 50–950 ramp

primary
#C878EF
secondary
#DCF2D1
accent
#DB0A4F
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#150F17
muted
#837F85

Preview Lab

Preview with #C878EF

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

Preview Lab → · Contrast checker → · Palette generator →

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