#CA40D5#CA40D5

#CA40D5 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.6% C 0.238 H 324.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#CA40D5
RGBrgb(202, 64, 213)
HSLhsl(296, 64%, 54%)
HSVhsv(296, 70%, 84%)
CMYKcmyk(5.2%, 70%, 0%, 16.5%)
CIE-LABlab(52.98, 71.65, -49.45)
CIE-LCHlch(52.98, 87.06, 325.39°)
OKLaboklab(62.58% 0.1947 -0.1376)
OKLCHoklch(62.58% 0.238 324.7)
XYZxyz(38.1998, 21.0298, 64.9850)
Luminance0.2103 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40D5 #4BD540
analogous
#7F40D5 #CA40D5 #D54096
triadic
#CA40D5 #D5CA40 #40D5CA
tetradic
#CA40D5 #D57F40 #4BD540 #4096D5
square
#CA40D5 #D57F40 #4BD540 #4096D5
split-complementary
#CA40D5 #96D540 #40D57F
monochromatic
#771C7F #A727B1 #CA40D5 #D872E0 #E6A4EB

Accessibility & contrast

On white

4.03
#CA40D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#CA40D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40D5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40D5#FFFFFF#000000##000000
##CA40D51.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1574D9
Deuteranopia (green-blind)
#5D84D1
Tritanopia (blue-blind)
#CE5987
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ca40d5;
/* rgb */ color: rgb(202, 64, 213);
/* oklch */ color: oklch(62.6% 0.238 324.7);
Tailwind
colors: {
  custom: {
    50: '#de81e2',
    500: '#ca40d5',
    950: '#000000',
  },
}
SCSS
$custom: #ca40d5;
$custom-light: #de81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40d5",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 295.57,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.6258,
    "c": 0.23843,
    "h": 324.7
  },
  "luminance": 0.21027
}

Semantic roles & 50–950 ramp

primary
#CA40D5
secondary
#9DD899
accent
#E7414D
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CA40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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