#CD78F1#CD78F1

#CD78F1 is a light, vivid purple. Relative luminance 0.328; OKLCH L 71.1% C 0.188 H 315.0°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#CD78F1
RGBrgb(205, 120, 241)
HSLhsl(282, 81%, 71%)
HSVhsv(282, 50%, 95%)
CMYKcmyk(14.9%, 50.2%, 0%, 5.5%)
CIE-LABlab(63.97, 52.83, -47.72)
CIE-LCHlch(63.97, 71.19, 317.91°)
OKLaboklab(71.14% 0.1328 -0.1328)
OKLCHoklch(71.14% 0.188 315)
XYZxyz(47.7680, 32.7643, 87.0099)
Luminance0.3276 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78F1 #9CF178
analogous
#9078F1 #CD78F1 #F178D8
triadic
#CD78F1 #F1CD78 #78F1CD
tetradic
#CD78F1 #F19078 #9CF178 #78D8F1
square
#CD78F1 #F19078 #9CF178 #78D8F1
split-complementary
#CD78F1 #D8F178 #78F190
monochromatic
#9F16D8 #B841EB #CD78F1 #E2AFF7 #F5E3FC

Accessibility & contrast

On white

2.78
#CD78F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#CD78F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78F1
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78F1#FFFFFF#000000##000000
##CD78F11.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D96F5
Deuteranopia (green-blind)
#779DEE
Tritanopia (blue-blind)
#CB8BAA
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cd78f1;
/* rgb */ color: rgb(205, 120, 241);
/* oklch */ color: oklch(71.1% 0.188 315.0);
Tailwind
colors: {
  custom: {
    50: '#dea2f6',
    500: '#cd78f1',
    950: '#000000',
  },
}
SCSS
$custom: #cd78f1;
$custom-light: #dea2f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78f1",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 241
  },
  "hsl": {
    "h": 282.149,
    "s": 81.208,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71139,
    "c": 0.18784,
    "h": 315
  },
  "luminance": 0.32763
}

Semantic roles & 50–950 ramp

primary
#CD78F1
secondary
#DCF3D2
accent
#DE0847
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD78F1

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

Preview Lab → · Contrast checker → · Palette generator →

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