#CA40AF#CA40AF

#CA40AF is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.6% C 0.210 H 336.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#CA40AF
RGBrgb(202, 64, 175)
HSLhsl(312, 57%, 52%)
HSVhsv(312, 68%, 79%)
CMYKcmyk(0%, 68.3%, 13.4%, 20.8%)
CIE-LABlab(51.06, 65.63, -30.53)
CIE-LCHlch(51.06, 72.39, 335.05°)
OKLaboklab(60.57% 0.1927 -0.083)
OKLCHoklch(60.57% 0.21 336.7)
XYZxyz(33.9289, 19.3215, 42.4916)
Luminance0.1932 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40AF #40CA5B
analogous
#A040CA #CA40AF #CA406A
triadic
#CA40AF #AFCA40 #40AFCA
tetradic
#CA40AF #CAA040 #40CA5B #406ACA
square
#CA40AF #CAA040 #40CA5B #406ACA
split-complementary
#CA40AF #6ACA40 #40CAA0
monochromatic
#701F61 #A02C8A #CA40AF #D770C3 #E5A0D7

Accessibility & contrast

On white

4.32
#CA40AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#CA40AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40AF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40AF#FFFFFF#000000##000000
##CA40AF1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#436CB2
Deuteranopia (green-blind)
#7081AC
Tritanopia (blue-blind)
#D44872
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca40af;
/* rgb */ color: rgb(202, 64, 175);
/* oklch */ color: oklch(60.6% 0.210 336.7);
Tailwind
colors: {
  custom: {
    50: '#de80c7',
    500: '#ca40af',
    950: '#000000',
  },
}
SCSS
$custom: #ca40af;
$custom-light: #de80c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40af",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 311.739,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60573,
    "c": 0.20983,
    "h": 336.7
  },
  "luminance": 0.19318
}

Semantic roles & 50–950 ramp

primary
#CA40AF
secondary
#95D1A1
accent
#E06648
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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