#CD78E2#CD78E2

#CD78E2 is a light, vivid purple. Relative luminance 0.319; OKLCH L 70.4% C 0.172 H 319.4°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#CD78E2
RGBrgb(205, 120, 226)
HSLhsl(288, 65%, 68%)
HSVhsv(288, 47%, 89%)
CMYKcmyk(9.3%, 46.9%, 0%, 11.4%)
CIE-LABlab(63.26, 49.82, -40.51)
CIE-LCHlch(63.26, 64.21, 320.89°)
OKLaboklab(70.39% 0.1309 -0.112)
OKLCHoklch(70.39% 0.172 319.4)
XYZxyz(45.6190, 31.9047, 75.6920)
Luminance0.3190 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78E2 #8DE278
analogous
#9878E2 #CD78E2 #E278C2
triadic
#CD78E2 #E2CD78 #78E2CD
tetradic
#CD78E2 #E29878 #8DE278 #78C2E2
square
#CD78E2 #E29878 #8DE278 #78C2E2
split-complementary
#CD78E2 #C2E278 #78E298
monochromatic
#9B28B8 #BA46D7 #CD78E2 #E0AAED #F2DDF8

Accessibility & contrast

On white

2.85
#CD78E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#CD78E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78E2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78E2#FFFFFF#000000##000000
##CD78E21.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6793E6
Deuteranopia (green-blind)
#7F9CDF
Tritanopia (blue-blind)
#CE86A3
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #cd78e2;
/* rgb */ color: rgb(205, 120, 226);
/* oklch */ color: oklch(70.4% 0.172 319.4);
Tailwind
colors: {
  custom: {
    50: '#dea1eb',
    500: '#cd78e2',
    950: '#000000',
  },
}
SCSS
$custom: #cd78e2;
$custom-light: #dea1eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78e2",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 226
  },
  "hsl": {
    "h": 288.113,
    "s": 64.634,
    "l": 67.843
  },
  "oklch": {
    "l": 0.70386,
    "c": 0.17226,
    "h": 319.4
  },
  "luminance": 0.31903
}

Semantic roles & 50–950 ramp

primary
#CD78E2
secondary
#D1EBCB
accent
#CC193D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD78E2

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

Preview Lab → · Contrast checker → · Palette generator →

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