#CD78EF#CD78EF

#CD78EF is a light, vivid purple. Relative luminance 0.326; OKLCH L 71.0% C 0.186 H 315.5°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#CD78EF
RGBrgb(205, 120, 239)
HSLhsl(283, 79%, 70%)
HSVhsv(283, 50%, 94%)
CMYKcmyk(14.2%, 49.8%, 0%, 6.3%)
CIE-LABlab(63.87, 52.42, -46.76)
CIE-LCHlch(63.87, 70.25, 318.27°)
OKLaboklab(71.04% 0.1326 -0.1301)
OKLCHoklch(71.04% 0.186 315.5)
XYZxyz(47.4709, 32.6455, 85.4452)
Luminance0.3264 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78EF #9AEF78
analogous
#9178EF #CD78EF #EF78D6
triadic
#CD78EF #EFCD78 #78EFCD
tetradic
#CD78EF #EF9178 #9AEF78 #78D6EF
square
#CD78EF #EF9178 #9AEF78 #78D6EF
split-complementary
#CD78EF #D6EF78 #78EF91
monochromatic
#9E19D4 #B941E9 #CD78EF #E1AFF5 #F5E4FC

Accessibility & contrast

On white

2.79
#CD78EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#CD78EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78EF
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78EF#FFFFFF#000000##000000
##CD78EF1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F96F3
Deuteranopia (green-blind)
#789DEC
Tritanopia (blue-blind)
#CB8AA9
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cd78ef;
/* rgb */ color: rgb(205, 120, 239);
/* oklch */ color: oklch(71.0% 0.186 315.5);
Tailwind
colors: {
  custom: {
    50: '#dea1f5',
    500: '#cd78ef',
    950: '#000000',
  },
}
SCSS
$custom: #cd78ef;
$custom-light: #dea1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78ef",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 282.857,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.71036,
    "c": 0.18574,
    "h": 315.5
  },
  "luminance": 0.32644
}

Semantic roles & 50–950 ramp

primary
#CD78EF
secondary
#DAF2D1
accent
#DB0A46
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD78EF

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

Preview Lab → · Contrast checker → · Palette generator →

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