#CA407B#CA407B

#CA407B is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.5% C 0.181 H 358.1°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#CA407B
RGBrgb(202, 64, 123)
HSLhsl(334, 57%, 52%)
HSVhsv(334, 68%, 79%)
CMYKcmyk(0%, 68.3%, 39.1%, 20.8%)
CIE-LABlab(49.08, 59.05, -2.57)
CIE-LCHlch(49.08, 59.10, 357.51°)
OKLaboklab(58.47% 0.1809 -0.006)
OKLCHoklch(58.47% 0.181 358.1)
XYZxyz(29.7676, 17.6570, 20.5756)
Luminance0.1765 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA407B #40CA8F
analogous
#CA40C0 #CA407B #CA4A40
triadic
#CA407B #7BCA40 #407BCA
tetradic
#CA407B #C0CA40 #40CA8F #4A40CA
square
#CA407B #C0CA40 #40CA8F #4A40CA
split-complementary
#CA407B #40CA4A #40C0CA
monochromatic
#701F42 #A02C5E #CA407B #D7709C #E5A0BD

Accessibility & contrast

On white

4.64
#CA407B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#CA407B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CA407B
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA407B#FFFFFF#000000##FFFFFF
##CA407B1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A647D
Deuteranopia (green-blind)
#807E78
Tritanopia (blue-blind)
#DA3158
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ca407b;
/* rgb */ color: rgb(202, 64, 123);
/* oklch */ color: oklch(58.5% 0.181 358.1);
Tailwind
colors: {
  custom: {
    50: '#df7ea1',
    500: '#ca407b',
    950: '#000000',
  },
}
SCSS
$custom: #ca407b;
$custom-light: #df7ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca407b",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 334.348,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58471,
    "c": 0.18098,
    "h": 358.1
  },
  "luminance": 0.17653
}

Semantic roles & 50–950 ramp

primary
#CA407B
secondary
#95D1B7
accent
#E09F48
background
#FEF8F9
surface
#FCEFF2
border
#D5CACC
text
#160B0E
muted
#847C7E

Preview Lab

Preview with #CA407B

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

Preview Lab → · Contrast checker → · Palette generator →

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