#CD40AB#CD40AB

#CD40AB is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.8% C 0.209 H 339.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CD40AB
RGBrgb(205, 64, 171)
HSLhsl(314, 59%, 53%)
HSVhsv(314, 69%, 80%)
CMYKcmyk(0%, 68.8%, 16.6%, 19.6%)
CIE-LABlab(51.37, 65.80, -27.67)
CIE-LCHlch(51.37, 71.38, 337.19°)
OKLaboklab(60.83% 0.1951 -0.0748)
OKLCHoklch(60.83% 0.209 339)
XYZxyz(34.3617, 19.5894, 40.4916)
Luminance0.1959 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40AB #40CD62
analogous
#A840CD #CD40AB #CD4065
triadic
#CD40AB #ABCD40 #40ABCD
tetradic
#CD40AB #CDA840 #40CD62 #4065CD
square
#CD40AB #CDA840 #40CD62 #4065CD
split-complementary
#CD40AB #65CD40 #40CDA8
monochromatic
#741E60 #A52B87 #CD40AB #DA71C0 #E6A1D6

Accessibility & contrast

On white

4.27
#CD40AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#CD40AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40AB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40AB#FFFFFF#000000##000000
##CD40AB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#476CAE
Deuteranopia (green-blind)
#7482A8
Tritanopia (blue-blind)
#D84570
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd40ab;
/* rgb */ color: rgb(205, 64, 171);
/* oklch */ color: oklch(60.8% 0.209 339.0);
Tailwind
colors: {
  custom: {
    50: '#e080c4',
    500: '#cd40ab',
    950: '#000000',
  },
}
SCSS
$custom: #cd40ab;
$custom-light: #e080c4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40ab",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 314.468,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60832,
    "c": 0.20897,
    "h": 339
  },
  "luminance": 0.19586
}

Semantic roles & 50–950 ramp

primary
#CD40AB
secondary
#96D3A5
accent
#E26C46
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #CD40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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