#CD78F2#CD78F2

#CD78F2 is a light, vivid purple. Relative luminance 0.328; OKLCH L 71.2% C 0.189 H 314.7°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#CD78F2
RGBrgb(205, 120, 242)
HSLhsl(282, 82%, 71%)
HSVhsv(282, 50%, 95%)
CMYKcmyk(15.3%, 50.4%, 0%, 5.1%)
CIE-LABlab(64.02, 53.04, -48.19)
CIE-LCHlch(64.02, 71.66, 317.74°)
OKLaboklab(71.19% 0.1329 -0.1342)
OKLCHoklch(71.19% 0.189 314.7)
XYZxyz(47.9178, 32.8242, 87.7987)
Luminance0.3282 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78F2 #9DF278
analogous
#9078F2 #CD78F2 #F278DA
triadic
#CD78F2 #F2CD78 #78F2CD
tetradic
#CD78F2 #F29078 #9DF278 #78DAF2
square
#CD78F2 #F29078 #9DF278 #78DAF2
split-complementary
#CD78F2 #DAF278 #78F290
monochromatic
#9F15DB #B840ED #CD78F2 #E2B0F7 #F5E3FC

Accessibility & contrast

On white

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

On black

7.56
#CD78F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78F2
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78F2#FFFFFF#000000##000000
##CD78F21.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D96F6
Deuteranopia (green-blind)
#779DEF
Tritanopia (blue-blind)
#CA8BAA
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cd78f2;
/* rgb */ color: rgb(205, 120, 242);
/* oklch */ color: oklch(71.2% 0.189 314.7);
Tailwind
colors: {
  custom: {
    50: '#dfa2f7',
    500: '#cd78f2',
    950: '#000000',
  },
}
SCSS
$custom: #cd78f2;
$custom-light: #dfa2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78f2",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 281.803,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71191,
    "c": 0.1889,
    "h": 314.7
  },
  "luminance": 0.32823
}

Semantic roles & 50–950 ramp

primary
#CD78F2
secondary
#DDF3D3
accent
#DF0748
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD78F2

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

Preview Lab → · Contrast checker → · Palette generator →

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