#CD78E8#CD78E8

#CD78E8 is a light, vivid purple. Relative luminance 0.322; OKLCH L 70.7% C 0.178 H 317.6°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#CD78E8
RGBrgb(205, 120, 232)
HSLhsl(286, 71%, 69%)
HSVhsv(286, 48%, 91%)
CMYKcmyk(11.6%, 48.3%, 0%, 9%)
CIE-LABlab(63.54, 51.01, -43.41)
CIE-LCHlch(63.54, 66.98, 319.60°)
OKLaboklab(70.68% 0.1317 -0.1204)
OKLCHoklch(70.68% 0.178 317.6)
XYZxyz(46.4567, 32.2398, 80.1040)
Luminance0.3224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78E8 #93E878
analogous
#9578E8 #CD78E8 #E878CB
triadic
#CD78E8 #E8CD78 #78E8CD
tetradic
#CD78E8 #E89578 #93E878 #78CBE8
square
#CD78E8 #E89578 #93E878 #78CBE8
split-complementary
#CD78E8 #CBE878 #78E895
monochromatic
#9D21C4 #BA44DF #CD78E8 #E0ACF1 #F4E1FA

Accessibility & contrast

On white

2.82
#CD78E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#CD78E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78E8
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78E8#FFFFFF#000000##000000
##CD78E81.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6394EC
Deuteranopia (green-blind)
#7C9DE5
Tritanopia (blue-blind)
#CD88A5
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #cd78e8;
/* rgb */ color: rgb(205, 120, 232);
/* oklch */ color: oklch(70.7% 0.178 317.6);
Tailwind
colors: {
  custom: {
    50: '#dea1f0',
    500: '#cd78e8',
    950: '#000000',
  },
}
SCSS
$custom: #cd78e8;
$custom-light: #dea1f0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78e8",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 232
  },
  "hsl": {
    "h": 285.536,
    "s": 70.886,
    "l": 69.02
  },
  "oklch": {
    "l": 0.70682,
    "c": 0.17844,
    "h": 317.6
  },
  "luminance": 0.32238
}

Semantic roles & 50–950 ramp

primary
#CD78E8
secondary
#D5EECD
accent
#D31341
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD78E8

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

Preview Lab → · Contrast checker → · Palette generator →

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