#CA40A2#CA40A2

#CA40A2 is a mid, highly saturated pink. Relative luminance 0.188; OKLCH L 60.0% C 0.201 H 341.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#CA40A2
RGBrgb(202, 64, 162)
HSLhsl(317, 57%, 52%)
HSVhsv(317, 68%, 79%)
CMYKcmyk(0%, 68.3%, 19.8%, 20.8%)
CIE-LABlab(50.49, 63.79, -23.76)
CIE-LCHlch(50.49, 68.07, 339.57°)
OKLaboklab(59.98% 0.1907 -0.0638)
OKLCHoklch(59.98% 0.201 341.5)
XYZxyz(32.7131, 18.8351, 36.0881)
Luminance0.1883 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40A2 #40CA68
analogous
#AD40CA #CA40A2 #CA405D
triadic
#CA40A2 #A2CA40 #40A2CA
tetradic
#CA40A2 #CAAD40 #40CA68 #405DCA
square
#CA40A2 #CAAD40 #40CA68 #405DCA
split-complementary
#CA40A2 #5DCA40 #40CAAD
monochromatic
#701F59 #A02C7F #CA40A2 #D770B9 #E5A0D1

Accessibility & contrast

On white

4.41
#CA40A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#CA40A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40A2
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40A2#FFFFFF#000000##000000
##CA40A21.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6AA5
Deuteranopia (green-blind)
#75809F
Tritanopia (blue-blind)
#D6426B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca40a2;
/* rgb */ color: rgb(202, 64, 162);
/* oklch */ color: oklch(60.0% 0.201 341.5);
Tailwind
colors: {
  custom: {
    50: '#de7fbd',
    500: '#ca40a2',
    950: '#000000',
  },
}
SCSS
$custom: #ca40a2;
$custom-light: #de7fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40a2",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 317.391,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59975,
    "c": 0.20112,
    "h": 341.5
  },
  "luminance": 0.18832
}

Semantic roles & 50–950 ramp

primary
#CA40A2
secondary
#95D1A6
accent
#E07448
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CA40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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