#C878EB#C878EB

#C878EB is a light, vivid purple. Relative luminance 0.317; OKLCH L 70.3% C 0.179 H 314.7°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#C878EB
RGBrgb(200, 120, 235)
HSLhsl(282, 74%, 70%)
HSVhsv(282, 49%, 92%)
CMYKcmyk(14.9%, 48.9%, 0%, 7.8%)
CIE-LABlab(63.10, 50.25, -45.80)
CIE-LCHlch(63.10, 67.99, 317.65°)
OKLaboklab(70.28% 0.1262 -0.1274)
OKLCHoklch(70.28% 0.179 314.7)
XYZxyz(45.5289, 31.7117, 82.3038)
Luminance0.3171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C878EB #9BEB78
analogous
#8F78EB #C878EB #EB78D5
triadic
#C878EB #EBC878 #78EBC8
tetradic
#C878EB #EB8F78 #9BEB78 #78D5EB
square
#C878EB #EB8F78 #9BEB78 #78D5EB
split-complementary
#C878EB #D5EB78 #78EB8F
monochromatic
#961ECB #B243E3 #C878EB #DEADF3 #F3E3FB

Accessibility & contrast

On white

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

On black

7.34
#C878EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C878EB
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C878EB#FFFFFF#000000##000000
##C878EB1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F94EF
Deuteranopia (green-blind)
#779BE8
Tritanopia (blue-blind)
#C68AA7
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #c878eb;
/* rgb */ color: rgb(200, 120, 235);
/* oklch */ color: oklch(70.3% 0.179 314.7);
Tailwind
colors: {
  custom: {
    50: '#dba1f2',
    500: '#c878eb',
    950: '#000000',
  },
}
SCSS
$custom: #c878eb;
$custom-light: #dba1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#c878eb",
  "rgb": {
    "r": 200,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 281.739,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.70277,
    "c": 0.17935,
    "h": 314.7
  },
  "luminance": 0.3171
}

Semantic roles & 50–950 ramp

primary
#C878EB
secondary
#D9F0CF
accent
#D60F4C
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #C878EB

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

Preview Lab → · Contrast checker → · Palette generator →

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