#CA40C3#CA40C3

#CA40C3 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.224 H 330.0°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CA40C3
RGBrgb(202, 64, 195)
HSLhsl(303, 57%, 52%)
HSVhsv(303, 68%, 79%)
CMYKcmyk(0%, 68.3%, 3.5%, 20.8%)
CIE-LABlab(52.02, 68.69, -40.65)
CIE-LCHlch(52.02, 79.82, 329.38°)
OKLaboklab(61.58% 0.1945 -0.112)
OKLCHoklch(61.58% 0.224 330)
XYZxyz(36.0406, 20.1662, 53.6134)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40C3 #40CA47
analogous
#8C40CA #CA40C3 #CA407E
triadic
#CA40C3 #C3CA40 #40C3CA
tetradic
#CA40C3 #CA8C40 #40CA47 #407ECA
square
#CA40C3 #CA8C40 #40CA47 #407ECA
split-complementary
#CA40C3 #7ECA40 #40CA8C
monochromatic
#701F6C #A02C9A #CA40C3 #D770D2 #E5A0E1

Accessibility & contrast

On white

4.17
#CA40C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CA40C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40C3
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40C3#FFFFFF#000000##000000
##CA40C31.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3270C7
Deuteranopia (green-blind)
#6783BF
Tritanopia (blue-blind)
#D1517D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca40c3;
/* rgb */ color: rgb(202, 64, 195);
/* oklch */ color: oklch(61.6% 0.224 330.0);
Tailwind
colors: {
  custom: {
    50: '#de80d5',
    500: '#ca40c3',
    950: '#000000',
  },
}
SCSS
$custom: #ca40c3;
$custom-light: #de80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40c3",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 303.043,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61583,
    "c": 0.22442,
    "h": 330
  },
  "luminance": 0.20163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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