#CA56F2#CA56F2

#CA56F2 is a light, highly saturated purple. Relative luminance 0.256; OKLCH L 66.5% C 0.237 H 316.3°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#CA56F2
RGBrgb(202, 86, 242)
HSLhsl(285, 86%, 64%)
HSVhsv(285, 64%, 95%)
CMYKcmyk(16.5%, 64.5%, 0%, 5.1%)
CIE-LABlab(57.68, 68.35, -58.29)
CIE-LCHlch(57.68, 89.84, 319.54°)
OKLaboklab(66.48% 0.171 -0.1636)
OKLCHoklch(66.48% 0.237 316.3)
XYZxyz(43.7095, 25.6246, 86.6308)
Luminance0.2562 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA56F2 #7EF256
analogous
#7C56F2 #CA56F2 #F256CC
triadic
#CA56F2 #F2CA56 #56F2CA
tetradic
#CA56F2 #F27C56 #7EF256 #56CCF2
square
#CA56F2 #F27C56 #7EF256 #56CCF2
split-complementary
#CA56F2 #CCF256 #56F27C
monochromatic
#920FBF #B81DEE #CA56F2 #DC8FF6 #EEC8FB

Accessibility & contrast

On white

3.43
#CA56F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#CA56F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA56F2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA56F2#FFFFFF#000000##000000
##CA56F21.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1284F7
Deuteranopia (green-blind)
#578EEE
Tritanopia (blue-blind)
#C8739D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ca56f2;
/* rgb */ color: rgb(202, 86, 242);
/* oklch */ color: oklch(66.5% 0.237 316.3);
Tailwind
colors: {
  custom: {
    50: '#de8df7',
    500: '#ca56f2',
    950: '#000000',
  },
}
SCSS
$custom: #ca56f2;
$custom-light: #de8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca56f2",
  "rgb": {
    "r": 202,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 284.615,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.66482,
    "c": 0.23666,
    "h": 316.3
  },
  "luminance": 0.25623
}

Semantic roles & 50–950 ramp

primary
#CA56F2
secondary
#C5EDB7
accent
#E2033C
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CA56F2

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

Preview Lab → · Contrast checker → · Palette generator →

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