#CD78FC#CD78FC

#CD78FC is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.7% C 0.199 H 312.1°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#CD78FC
RGBrgb(205, 120, 252)
HSLhsl(279, 96%, 73%)
HSVhsv(279, 52%, 99%)
CMYKcmyk(18.7%, 52.4%, 0%, 1.2%)
CIE-LABlab(64.52, 55.12, -52.91)
CIE-LCHlch(64.52, 76.40, 316.17°)
OKLaboklab(71.72% 0.1338 -0.1479)
OKLCHoklch(71.72% 0.199 312.1)
XYZxyz(49.4609, 33.4415, 95.9259)
Luminance0.3344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78FC #A7FC78
analogous
#8B78FC #CD78FC #FC78E9
triadic
#CD78FC #FCCD78 #78FCCD
tetradic
#CD78FC #FC8B78 #A7FC78 #78E9FC
square
#CD78FC #FC8B78 #A7FC78 #78E9FC
split-complementary
#CD78FC #E9FC78 #78FC8B
monochromatic
#9F05F4 #B73CFB #CD78FC #E3B4FD #F4E1FE

Accessibility & contrast

On white

2.73
#CD78FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#CD78FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78FC
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78FC#FFFFFF#000000##000000
##CD78FC1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5598FF
Deuteranopia (green-blind)
#719EF9
Tritanopia (blue-blind)
#C88EAF
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cd78fc;
/* rgb */ color: rgb(205, 120, 252);
/* oklch */ color: oklch(71.7% 0.199 312.1);
Tailwind
colors: {
  custom: {
    50: '#dfa2fe',
    500: '#cd78fc',
    950: '#000000',
  },
}
SCSS
$custom: #cd78fc;
$custom-light: #dfa2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78fc",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 278.636,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.71721,
    "c": 0.19949,
    "h": 312.1
  },
  "luminance": 0.3344
}

Semantic roles & 50–950 ramp

primary
#CD78FC
secondary
#E1F7D4
accent
#E60052
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#150F18
muted
#847F86

Preview Lab

Preview with #CD78FC

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

Preview Lab → · Contrast checker → · Palette generator →

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