#CD78EC#CD78EC

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

Color values

HEX#CD78EC
RGBrgb(205, 120, 236)
HSLhsl(284, 75%, 70%)
HSVhsv(284, 49%, 93%)
CMYKcmyk(13.1%, 49.2%, 0%, 7.5%)
CIE-LABlab(63.73, 51.82, -45.33)
CIE-LCHlch(63.73, 68.85, 318.82°)
OKLaboklab(70.88% 0.1322 -0.1259)
OKLCHoklch(70.88% 0.183 316.4)
XYZxyz(47.0314, 32.4697, 83.1304)
Luminance0.3247 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78EC #97EC78
analogous
#9378EC #CD78EC #EC78D1
triadic
#CD78EC #ECCD78 #78ECCD
tetradic
#CD78EC #EC9378 #97EC78 #78D1EC
square
#CD78EC #EC9378 #97EC78 #78D1EC
split-complementary
#CD78EC #D1EC78 #78EC93
monochromatic
#9E1DCD #B942E4 #CD78EC #E1AEF4 #F5E3FB

Accessibility & contrast

On white

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

On black

7.49
#CD78EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78EC
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78EC#FFFFFF#000000##000000
##CD78EC1.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6195F0
Deuteranopia (green-blind)
#7A9DE9
Tritanopia (blue-blind)
#CC89A7
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #cd78ec;
/* rgb */ color: rgb(205, 120, 236);
/* oklch */ color: oklch(70.9% 0.183 316.4);
Tailwind
colors: {
  custom: {
    50: '#dea1f2',
    500: '#cd78ec',
    950: '#000000',
  },
}
SCSS
$custom: #cd78ec;
$custom-light: #dea1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78ec",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 283.966,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.70883,
    "c": 0.1826,
    "h": 316.4
  },
  "luminance": 0.32468
}

Semantic roles & 50–950 ramp

primary
#CD78EC
secondary
#D8F0D0
accent
#D70E44
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD78EC

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

Preview Lab → · Contrast checker → · Palette generator →

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