#C878EC#C878EC

#C878EC is a light, vivid purple. Relative luminance 0.318; OKLCH L 70.3% C 0.180 H 314.4°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#C878EC
RGBrgb(200, 120, 236)
HSLhsl(281, 75%, 70%)
HSVhsv(281, 49%, 93%)
CMYKcmyk(15.3%, 49.2%, 0%, 7.5%)
CIE-LABlab(63.15, 50.46, -46.28)
CIE-LCHlch(63.15, 68.47, 317.48°)
OKLaboklab(70.33% 0.1264 -0.1288)
OKLCHoklch(70.33% 0.18 314.4)
XYZxyz(45.6738, 31.7696, 83.0668)
Luminance0.3177 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C878EC #9CEC78
analogous
#8E78EC #C878EC #EC78D6
triadic
#C878EC #ECC878 #78ECC8
tetradic
#C878EC #EC8E78 #9CEC78 #78D6EC
square
#C878EC #EC8E78 #9CEC78 #78D6EC
split-complementary
#C878EC #D6EC78 #78EC8E
monochromatic
#961DCD #B242E4 #C878EC #DEAEF4 #F4E3FB

Accessibility & contrast

On white

2.86
#C878EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#C878EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C878EC
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C878EC#FFFFFF#000000##000000
##C878EC1.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F94F0
Deuteranopia (green-blind)
#769BE9
Tritanopia (blue-blind)
#C58AA7
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #c878ec;
/* rgb */ color: rgb(200, 120, 236);
/* oklch */ color: oklch(70.3% 0.180 314.4);
Tailwind
colors: {
  custom: {
    50: '#dba1f2',
    500: '#c878ec',
    950: '#000000',
  },
}
SCSS
$custom: #c878ec;
$custom-light: #dba1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#c878ec",
  "rgb": {
    "r": 200,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 281.379,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.70329,
    "c": 0.18043,
    "h": 314.4
  },
  "luminance": 0.31768
}

Semantic roles & 50–950 ramp

primary
#C878EC
secondary
#DAF0D0
accent
#D70E4D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #C878EC

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

Preview Lab → · Contrast checker → · Palette generator →

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