#CC78EB#CC78EB

#CC78EB is a light, vivid purple. Relative luminance 0.323; OKLCH L 70.7% C 0.181 H 316.3°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#CC78EB
RGBrgb(204, 120, 235)
HSLhsl(284, 74%, 70%)
HSVhsv(284, 49%, 92%)
CMYKcmyk(13.2%, 48.9%, 0%, 7.8%)
CIE-LABlab(63.57, 51.34, -45.04)
CIE-LCHlch(63.57, 68.30, 318.74°)
OKLaboklab(70.72% 0.1309 -0.1251)
OKLCHoklch(70.72% 0.181 316.3)
XYZxyz(46.6115, 32.2699, 82.3545)
Luminance0.3227 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC78EB #97EB78
analogous
#9378EB #CC78EB #EB78D1
triadic
#CC78EB #EBCC78 #78EBCC
tetradic
#CC78EB #EB9378 #97EB78 #78D1EB
square
#CC78EB #EB9378 #97EB78 #78D1EB
split-complementary
#CC78EB #D1EB78 #78EB93
monochromatic
#9C1ECB #B843E3 #CC78EB #E0ADF3 #F4E3FB

Accessibility & contrast

On white

2.82
#CC78EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#CC78EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC78EB
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC78EB#FFFFFF#000000##000000
##CC78EB1.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6195EF
Deuteranopia (green-blind)
#7A9DE8
Tritanopia (blue-blind)
#CB89A7
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #cc78eb;
/* rgb */ color: rgb(204, 120, 235);
/* oklch */ color: oklch(70.7% 0.181 316.3);
Tailwind
colors: {
  custom: {
    50: '#dea1f2',
    500: '#cc78eb',
    950: '#000000',
  },
}
SCSS
$custom: #cc78eb;
$custom-light: #dea1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc78eb",
  "rgb": {
    "r": 204,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 283.826,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.70721,
    "c": 0.18111,
    "h": 316.3
  },
  "luminance": 0.32268
}

Semantic roles & 50–950 ramp

primary
#CC78EB
secondary
#D8F0CF
accent
#D60F45
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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