#CA40DF#CA40DF

#CA40DF is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 63.2% C 0.246 H 322.1°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#CA40DF
RGBrgb(202, 64, 223)
HSLhsl(292, 71%, 56%)
HSVhsv(292, 71%, 87%)
CMYKcmyk(9.4%, 71.3%, 0%, 12.5%)
CIE-LABlab(53.55, 73.37, -54.23)
CIE-LCHlch(53.55, 91.24, 323.53°)
OKLaboklab(63.17% 0.1944 -0.1515)
OKLCHoklch(63.17% 0.246 322.1)
XYZxyz(39.5084, 21.5533, 71.8769)
Luminance0.2155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40DF #55DF40
analogous
#7B40DF #CA40DF #DF40A5
triadic
#CA40DF #DFCA40 #40DFCA
tetradic
#CA40DF #DF7B40 #55DF40 #40A5DF
square
#CA40DF #DF7B40 #55DF40 #40A5DF
split-complementary
#CA40DF #A5DF40 #40DF7B
monochromatic
#7D188D #AC20C1 #CA40DF #D974E8 #E7A9F1

Accessibility & contrast

On white

3.95
#CA40DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#CA40DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40DF
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40DF#FFFFFF#000000##000000
##CA40DF1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E3
Deuteranopia (green-blind)
#5685DB
Tritanopia (blue-blind)
#CC5D8C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ca40df;
/* rgb */ color: rgb(202, 64, 223);
/* oklch */ color: oklch(63.2% 0.246 322.1);
Tailwind
colors: {
  custom: {
    50: '#de81ea',
    500: '#ca40df',
    950: '#000000',
  },
}
SCSS
$custom: #ca40df;
$custom-light: #de81ea;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40df",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 292.075,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.63168,
    "c": 0.24645,
    "h": 322.1
  },
  "luminance": 0.21551
}

Semantic roles & 50–950 ramp

primary
#CA40DF
secondary
#A5DE9D
accent
#EE3A52
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CA40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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