#CA40A7#CA40A7

#CA40A7 is a mid, highly saturated pink. Relative luminance 0.190; OKLCH L 60.2% C 0.204 H 339.6°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#CA40A7
RGBrgb(202, 64, 167)
HSLhsl(315, 57%, 52%)
HSVhsv(315, 68%, 79%)
CMYKcmyk(0%, 68.3%, 17.3%, 20.8%)
CIE-LABlab(50.71, 64.48, -26.39)
CIE-LCHlch(50.71, 69.67, 337.75°)
OKLaboklab(60.2% 0.1916 -0.0712)
OKLCHoklch(60.2% 0.204 339.6)
XYZxyz(33.1664, 19.0165, 38.4755)
Luminance0.1901 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40A7 #40CA63
analogous
#A840CA #CA40A7 #CA4062
triadic
#CA40A7 #A7CA40 #40A7CA
tetradic
#CA40A7 #CAA840 #40CA63 #4062CA
square
#CA40A7 #CAA840 #40CA63 #4062CA
split-complementary
#CA40A7 #62CA40 #40CAA8
monochromatic
#701F5C #A02C83 #CA40A7 #D770BD #E5A0D3

Accessibility & contrast

On white

4.37
#CA40A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#CA40A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40A7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40A7#FFFFFF#000000##000000
##CA40A71.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#486BAA
Deuteranopia (green-blind)
#7381A4
Tritanopia (blue-blind)
#D5446E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ca40a7;
/* rgb */ color: rgb(202, 64, 167);
/* oklch */ color: oklch(60.2% 0.204 339.6);
Tailwind
colors: {
  custom: {
    50: '#de80c1',
    500: '#ca40a7',
    950: '#000000',
  },
}
SCSS
$custom: #ca40a7;
$custom-light: #de80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40a7",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 315.217,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60199,
    "c": 0.20439,
    "h": 339.6
  },
  "luminance": 0.19013
}

Semantic roles & 50–950 ramp

primary
#CA40A7
secondary
#95D1A4
accent
#E06E48
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CA40A7

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

Preview Lab → · Contrast checker → · Palette generator →

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