#CD78FE#CD78FE

#CD78FE is a light, highly saturated violet. Relative luminance 0.336; OKLCH L 71.8% C 0.202 H 311.6°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#CD78FE
RGBrgb(205, 120, 254)
HSLhsl(278, 99%, 73%)
HSVhsv(278, 53%, 100%)
CMYKcmyk(19.3%, 52.8%, 0%, 0.4%)
CIE-LABlab(64.62, 55.54, -53.84)
CIE-LCHlch(64.62, 77.35, 315.89°)
OKLaboklab(71.83% 0.134 -0.1507)
OKLCHoklch(71.83% 0.202 311.6)
XYZxyz(49.7795, 33.5689, 97.6038)
Luminance0.3357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD78FE #A9FE78
analogous
#8A78FE #CD78FE #FE78EC
triadic
#CD78FE #FECD78 #78FECD
tetradic
#CD78FE #FE8A78 #A9FE78 #78ECFE
square
#CD78FE #FE8A78 #A9FE78 #78ECFE
split-complementary
#CD78FE #ECFE78 #78FE8A
monochromatic
#9F02FA #B73BFE #CD78FE #E3B5FE #F4E1FF

Accessibility & contrast

On white

2.72
#CD78FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#CD78FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD78FE
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD78FE#FFFFFF#000000##000000
##CD78FE1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5498FF
Deuteranopia (green-blind)
#6F9EFB
Tritanopia (blue-blind)
#C88FB0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd78fe;
/* rgb */ color: rgb(205, 120, 254);
/* oklch */ color: oklch(71.8% 0.202 311.6);
Tailwind
colors: {
  custom: {
    50: '#dfa2ff',
    500: '#cd78fe',
    950: '#000000',
  },
}
SCSS
$custom: #cd78fe;
$custom-light: #dfa2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd78fe",
  "rgb": {
    "r": 205,
    "g": 120,
    "b": 254
  },
  "hsl": {
    "h": 278.06,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.7183,
    "c": 0.20161,
    "h": 311.6
  },
  "luminance": 0.33568
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD78FE

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

Preview Lab → · Contrast checker → · Palette generator →

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