#CA78F2#CA78F2

#CA78F2 is a light, vivid purple. Relative luminance 0.324; OKLCH L 70.9% C 0.188 H 313.6°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#CA78F2
RGBrgb(202, 120, 242)
HSLhsl(280, 82%, 71%)
HSVhsv(280, 50%, 95%)
CMYKcmyk(16.5%, 50.4%, 0%, 5.1%)
CIE-LABlab(63.67, 52.24, -48.76)
CIE-LCHlch(63.67, 71.46, 316.98°)
OKLaboklab(70.86% 0.1294 -0.1359)
OKLCHoklch(70.86% 0.188 313.6)
XYZxyz(47.0979, 32.4015, 87.7603)
Luminance0.3240 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA78F2 #A0F278
analogous
#8D78F2 #CA78F2 #F278DD
triadic
#CA78F2 #F2CA78 #78F2CA
tetradic
#CA78F2 #F28D78 #A0F278 #78DDF2
square
#CA78F2 #F28D78 #A0F278 #78DDF2
split-complementary
#CA78F2 #DDF278 #78F28D
monochromatic
#9A15DB #B440ED #CA78F2 #E0B0F7 #F4E3FC

Accessibility & contrast

On white

2.81
#CA78F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#CA78F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA78F2
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA78F2#FFFFFF#000000##000000
##CA78F21.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B96F6
Deuteranopia (green-blind)
#749CEF
Tritanopia (blue-blind)
#C78BAA
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ca78f2;
/* rgb */ color: rgb(202, 120, 242);
/* oklch */ color: oklch(70.9% 0.188 313.6);
Tailwind
colors: {
  custom: {
    50: '#dca1f7',
    500: '#ca78f2',
    950: '#000000',
  },
}
SCSS
$custom: #ca78f2;
$custom-light: #dca1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca78f2",
  "rgb": {
    "r": 202,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 280.328,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.70861,
    "c": 0.18767,
    "h": 313.6
  },
  "luminance": 0.324
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA78F2

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

Preview Lab → · Contrast checker → · Palette generator →

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