#CA40D9#CA40D9

#CA40D9 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.8% C 0.242 H 323.7°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#CA40D9
RGBrgb(202, 64, 217)
HSLhsl(294, 67%, 55%)
HSVhsv(294, 71%, 85%)
CMYKcmyk(6.9%, 70.5%, 0%, 14.9%)
CIE-LABlab(53.21, 72.33, -51.37)
CIE-LCHlch(53.21, 88.72, 324.62°)
OKLaboklab(62.81% 0.1946 -0.1432)
OKLCHoklch(62.81% 0.242 323.7)
XYZxyz(38.7138, 21.2354, 67.6919)
Luminance0.2123 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40D9 #4FD940
analogous
#7E40D9 #CA40D9 #D9409B
triadic
#CA40D9 #D9CA40 #40D9CA
tetradic
#CA40D9 #D97E40 #4FD940 #409BD9
square
#CA40D9 #D97E40 #4FD940 #409BD9
split-complementary
#CA40D9 #9BD940 #40D97E
monochromatic
#7A1A84 #A924B7 #CA40D9 #D873E3 #E6A6ED

Accessibility & contrast

On white

4.00
#CA40D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#CA40D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40D9
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40D9#FFFFFF#000000##000000
##CA40D91.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0675DD
Deuteranopia (green-blind)
#5A85D5
Tritanopia (blue-blind)
#CD5B89
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ca40d9;
/* rgb */ color: rgb(202, 64, 217);
/* oklch */ color: oklch(62.8% 0.242 323.7);
Tailwind
colors: {
  custom: {
    50: '#de81e5',
    500: '#ca40d9',
    950: '#000000',
  },
}
SCSS
$custom: #ca40d9;
$custom-light: #de81e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40d9",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 294.118,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62813,
    "c": 0.24162,
    "h": 323.7
  },
  "luminance": 0.21233
}

Semantic roles & 50–950 ramp

primary
#CA40D9
secondary
#A1DA9A
accent
#EA3E4F
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CA40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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