#CA40AC#CA40AC

#CA40AC is a mid, highly saturated pink. Relative luminance 0.192; OKLCH L 60.4% C 0.208 H 337.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#CA40AC
RGBrgb(202, 64, 172)
HSLhsl(313, 57%, 52%)
HSVhsv(313, 68%, 79%)
CMYKcmyk(0%, 68.3%, 14.9%, 20.8%)
CIE-LABlab(50.93, 65.20, -28.98)
CIE-LCHlch(50.93, 71.35, 336.03°)
OKLaboklab(60.43% 0.1923 -0.0786)
OKLCHoklch(60.43% 0.208 337.8)
XYZxyz(33.6375, 19.2049, 40.9571)
Luminance0.1920 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40AC #40CA5E
analogous
#A340CA #CA40AC #CA4067
triadic
#CA40AC #ACCA40 #40ACCA
tetradic
#CA40AC #CAA340 #40CA5E #4067CA
square
#CA40AC #CAA340 #40CA5E #4067CA
split-complementary
#CA40AC #67CA40 #40CAA3
monochromatic
#701F5F #A02C87 #CA40AC #D770C1 #E5A0D6

Accessibility & contrast

On white

4.34
#CA40AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#CA40AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40AC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40AC#FFFFFF#000000##000000
##CA40AC1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#456CAF
Deuteranopia (green-blind)
#7281A9
Tritanopia (blue-blind)
#D54771
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ca40ac;
/* rgb */ color: rgb(202, 64, 172);
/* oklch */ color: oklch(60.4% 0.208 337.8);
Tailwind
colors: {
  custom: {
    50: '#de80c5',
    500: '#ca40ac',
    950: '#000000',
  },
}
SCSS
$custom: #ca40ac;
$custom-light: #de80c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40ac",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 313.043,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60431,
    "c": 0.20775,
    "h": 337.8
  },
  "luminance": 0.19202
}

Semantic roles & 50–950 ramp

primary
#CA40AC
secondary
#95D1A2
accent
#E06948
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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