#CA40D6#CA40D6

#CA40D6 is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.6% C 0.239 H 324.5°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#CA40D6
RGBrgb(202, 64, 214)
HSLhsl(295, 65%, 55%)
HSVhsv(295, 70%, 84%)
CMYKcmyk(5.6%, 70.1%, 0%, 16.1%)
CIE-LABlab(53.04, 71.82, -49.94)
CIE-LCHlch(53.04, 87.47, 325.19°)
OKLaboklab(62.64% 0.1947 -0.139)
OKLCHoklch(62.64% 0.239 324.5)
XYZxyz(38.3271, 21.0808, 65.6555)
Luminance0.2108 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40D6 #4CD640
analogous
#7F40D6 #CA40D6 #D64097
triadic
#CA40D6 #D6CA40 #40D6CA
tetradic
#CA40D6 #D67F40 #4CD640 #4097D6
square
#CA40D6 #D67F40 #4CD640 #4097D6
split-complementary
#CA40D6 #97D640 #40D67F
monochromatic
#781B80 #A726B2 #CA40D6 #D872E1 #E6A5EC

Accessibility & contrast

On white

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

On black

5.22
#CA40D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40D6
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40D6#FFFFFF#000000##000000
##CA40D61.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1274DA
Deuteranopia (green-blind)
#5C84D2
Tritanopia (blue-blind)
#CE5987
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ca40d6;
/* rgb */ color: rgb(202, 64, 214);
/* oklch */ color: oklch(62.6% 0.239 324.5);
Tailwind
colors: {
  custom: {
    50: '#de81e3',
    500: '#ca40d6',
    950: '#000000',
  },
}
SCSS
$custom: #ca40d6;
$custom-light: #de81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40d6",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 295.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.62638,
    "c": 0.23922,
    "h": 324.5
  },
  "luminance": 0.21078
}

Semantic roles & 50–950 ramp

primary
#CA40D6
secondary
#9ED999
accent
#E8404E
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160B15
muted
#847C84

Preview Lab

Preview with #CA40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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