#CD78DC#CD78DC

#CD78DC is a light, vivid purple. Relative luminance 0.316; OKLCH L 70.1% C 0.166 H 321.4°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#CD78DC
RGBrgb(205, 120, 220)
HSLhsl(291, 59%, 67%)
HSVhsv(291, 45%, 86%)
CMYKcmyk(6.8%, 45.5%, 0%, 13.7%)
CIE-LABlab(63.00, 48.65, -37.58)
CIE-LCHlch(63.00, 61.48, 322.31°)
OKLaboklab(70.1% 0.1299 -0.1036)
OKLCHoklch(70.1% 0.166 321.4)
XYZxyz(44.8101, 31.5811, 71.4316)
Luminance0.3158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78DC #87DC78
analogous
#9B78DC #CD78DC #DC78B9
triadic
#CD78DC #DCCD78 #78DCCD
tetradic
#CD78DC #DC9B78 #87DC78 #78B9DC
square
#CD78DC #DC9B78 #87DC78 #78B9DC
split-complementary
#CD78DC #B9DC78 #78DC9B
monochromatic
#9A2DAD #BB47CF #CD78DC #DFA9E9 #F1D9F5

Accessibility & contrast

On white

2.87
#CD78DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#CD78DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78DC
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78DC#FFFFFF#000000##000000
##CD78DC1.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A92DF
Deuteranopia (green-blind)
#829CD9
Tritanopia (blue-blind)
#CF84A0
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #cd78dc;
/* rgb */ color: rgb(205, 120, 220);
/* oklch */ color: oklch(70.1% 0.166 321.4);
Tailwind
colors: {
  custom: {
    50: '#dea1e7',
    500: '#cd78dc',
    950: '#000000',
  },
}
SCSS
$custom: #cd78dc;
$custom-light: #dea1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78dc",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 291,
    "s": 58.824,
    "l": 66.667
  },
  "oklch": {
    "l": 0.70098,
    "c": 0.16616,
    "h": 321.4
  },
  "luminance": 0.31579
}

Semantic roles & 50–950 ramp

primary
#CD78DC
secondary
#CDE8C8
accent
#C61F38
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD78DC

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

Preview Lab → · Contrast checker → · Palette generator →

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