#CA40C2#CA40C2

#CA40C2 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.5% C 0.224 H 330.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#CA40C2
RGBrgb(202, 64, 194)
HSLhsl(303, 57%, 52%)
HSVhsv(303, 68%, 79%)
CMYKcmyk(0%, 68.3%, 4%, 20.8%)
CIE-LABlab(51.97, 68.53, -40.15)
CIE-LCHlch(51.97, 79.43, 329.64°)
OKLaboklab(61.53% 0.1944 -0.1106)
OKLCHoklch(61.53% 0.224 330.4)
XYZxyz(35.9280, 20.1211, 53.0199)
Luminance0.2012 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40C2 #40CA48
analogous
#8D40CA #CA40C2 #CA407D
triadic
#CA40C2 #C2CA40 #40C2CA
tetradic
#CA40C2 #CA8D40 #40CA48 #407DCA
square
#CA40C2 #CA8D40 #40CA48 #407DCA
split-complementary
#CA40C2 #7DCA40 #40CA8D
monochromatic
#701F6C #A02C9A #CA40C2 #D770D1 #E5A0E1

Accessibility & contrast

On white

4.18
#CA40C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#CA40C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40C2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40C2#FFFFFF#000000##000000
##CA40C21.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3370C6
Deuteranopia (green-blind)
#6883BE
Tritanopia (blue-blind)
#D2507C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca40c2;
/* rgb */ color: rgb(202, 64, 194);
/* oklch */ color: oklch(61.5% 0.224 330.4);
Tailwind
colors: {
  custom: {
    50: '#de80d5',
    500: '#ca40c2',
    950: '#000000',
  },
}
SCSS
$custom: #ca40c2;
$custom-light: #de80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40c2",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 303.478,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.6153,
    "c": 0.22366,
    "h": 330.4
  },
  "luminance": 0.20118
}

Semantic roles & 50–950 ramp

primary
#CA40C2
secondary
#95D198
accent
#E05148
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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