#CD78E4#CD78E4

#CD78E4 is a light, vivid purple. Relative luminance 0.320; OKLCH L 70.5% C 0.174 H 318.8°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#CD78E4
RGBrgb(205, 120, 228)
HSLhsl(287, 67%, 68%)
HSVhsv(287, 47%, 89%)
CMYKcmyk(10.1%, 47.4%, 0%, 10.6%)
CIE-LABlab(63.36, 50.22, -41.48)
CIE-LCHlch(63.36, 65.13, 320.44°)
OKLaboklab(70.48% 0.1312 -0.1148)
OKLCHoklch(70.48% 0.174 318.8)
XYZxyz(45.8950, 32.0151, 77.1457)
Luminance0.3201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78E4 #8FE478
analogous
#9778E4 #CD78E4 #E478C5
triadic
#CD78E4 #E4CD78 #78E4CD
tetradic
#CD78E4 #E49778 #8FE478 #78C5E4
square
#CD78E4 #E49778 #8FE478 #78C5E4
split-complementary
#CD78E4 #C5E478 #78E497
monochromatic
#9C26BC #BA45DA #CD78E4 #E0ABEE #F3DEF8

Accessibility & contrast

On white

2.84
#CD78E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#CD78E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78E4
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78E4#FFFFFF#000000##000000
##CD78E41.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6694E8
Deuteranopia (green-blind)
#7E9CE1
Tritanopia (blue-blind)
#CD87A3
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #cd78e4;
/* rgb */ color: rgb(205, 120, 228);
/* oklch */ color: oklch(70.5% 0.174 318.8);
Tailwind
colors: {
  custom: {
    50: '#dea1ed',
    500: '#cd78e4',
    950: '#000000',
  },
}
SCSS
$custom: #cd78e4;
$custom-light: #dea1ed;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78e4",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 228
  },
  "hsl": {
    "h": 287.222,
    "s": 66.667,
    "l": 68.235
  },
  "oklch": {
    "l": 0.70484,
    "c": 0.17431,
    "h": 318.8
  },
  "luminance": 0.32014
}

Semantic roles & 50–950 ramp

primary
#CD78E4
secondary
#D2ECCC
accent
#CF173E
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD78E4

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

Preview Lab → · Contrast checker → · Palette generator →

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