#CC78EF#CC78EF

#CC78EF is a light, vivid purple. Relative luminance 0.325; OKLCH L 70.9% C 0.185 H 315.2°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#CC78EF
RGBrgb(204, 120, 239)
HSLhsl(282, 79%, 70%)
HSVhsv(282, 50%, 94%)
CMYKcmyk(14.6%, 49.8%, 0%, 6.3%)
CIE-LABlab(63.76, 52.16, -46.95)
CIE-LCHlch(63.76, 70.18, 318.00°)
OKLaboklab(70.93% 0.1314 -0.1307)
OKLCHoklch(70.93% 0.185 315.2)
XYZxyz(47.1959, 32.5037, 85.4323)
Luminance0.3250 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC78EF #9BEF78
analogous
#9078EF #CC78EF #EF78D6
triadic
#CC78EF #EFCC78 #78EFCC
tetradic
#CC78EF #EF9078 #9BEF78 #78D6EF
square
#CC78EF #EF9078 #9BEF78 #78D6EF
split-complementary
#CC78EF #D6EF78 #78EF90
monochromatic
#9D19D4 #B741E9 #CC78EF #E1AFF5 #F5E4FC

Accessibility & contrast

On white

2.80
#CC78EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#CC78EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC78EF
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC78EF#FFFFFF#000000##000000
##CC78EF1.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E95F3
Deuteranopia (green-blind)
#789DEC
Tritanopia (blue-blind)
#CA8AA9
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #cc78ef;
/* rgb */ color: rgb(204, 120, 239);
/* oklch */ color: oklch(70.9% 0.185 315.2);
Tailwind
colors: {
  custom: {
    50: '#dea1f5',
    500: '#cc78ef',
    950: '#000000',
  },
}
SCSS
$custom: #cc78ef;
$custom-light: #dea1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc78ef",
  "rgb": {
    "r": 204,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 282.353,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.70925,
    "c": 0.18531,
    "h": 315.2
  },
  "luminance": 0.32502
}

Semantic roles & 50–950 ramp

primary
#CC78EF
secondary
#DBF2D1
accent
#DB0A48
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC78EF

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

Preview Lab → · Contrast checker → · Palette generator →

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