#CA78DC#CA78DC

#CA78DC is a light, vivid purple. Relative luminance 0.312; OKLCH L 69.8% C 0.165 H 320.2°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#CA78DC
RGBrgb(202, 120, 220)
HSLhsl(289, 59%, 67%)
HSVhsv(289, 45%, 86%)
CMYKcmyk(8.2%, 45.5%, 0%, 13.7%)
CIE-LABlab(62.64, 47.79, -38.16)
CIE-LCHlch(62.64, 61.16, 321.39°)
OKLaboklab(69.76% 0.1265 -0.1053)
OKLCHoklch(69.76% 0.165 320.2)
XYZxyz(43.9903, 31.1584, 71.3932)
Luminance0.3116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA78DC #8ADC78
analogous
#9878DC #CA78DC #DC78BC
triadic
#CA78DC #DCCA78 #78DCCA
tetradic
#CA78DC #DC9878 #8ADC78 #78BCDC
square
#CA78DC #DC9878 #8ADC78 #78BCDC
split-complementary
#CA78DC #BCDC78 #78DC98
monochromatic
#962DAD #B747CF #CA78DC #DDA9E9 #F0D9F5

Accessibility & contrast

On white

2.90
#CA78DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#CA78DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA78DC
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA78DC#FFFFFF#000000##000000
##CA78DC1.002.907.237.23
#FFFFFF2.901.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6992DF
Deuteranopia (green-blind)
#809BD9
Tritanopia (blue-blind)
#CB85A0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ca78dc;
/* rgb */ color: rgb(202, 120, 220);
/* oklch */ color: oklch(69.8% 0.165 320.2);
Tailwind
colors: {
  custom: {
    50: '#dca1e7',
    500: '#ca78dc',
    950: '#000000',
  },
}
SCSS
$custom: #ca78dc;
$custom-light: #dca1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca78dc",
  "rgb": {
    "r": 202,
    "g": 120,
    "b": 220
  },
  "hsl": {
    "h": 289.2,
    "s": 58.824,
    "l": 66.667
  },
  "oklch": {
    "l": 0.69757,
    "c": 0.16456,
    "h": 320.2
  },
  "luminance": 0.31157
}

Semantic roles & 50–950 ramp

primary
#CA78DC
secondary
#CEE8C8
accent
#C61F3D
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CA78DC

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

Preview Lab → · Contrast checker → · Palette generator →

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