#CD40B2#CD40B2

#CD40B2 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.2% C 0.214 H 336.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#CD40B2
RGBrgb(205, 64, 178)
HSLhsl(311, 59%, 53%)
HSVhsv(311, 69%, 80%)
CMYKcmyk(0%, 68.8%, 13.2%, 19.6%)
CIE-LABlab(51.68, 66.81, -31.28)
CIE-LCHlch(51.68, 73.77, 334.91°)
OKLaboklab(61.16% 0.1961 -0.0851)
OKLCHoklch(61.16% 0.214 336.5)
XYZxyz(35.0467, 19.8634, 44.0991)
Luminance0.1986 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40B2 #40CD5B
analogous
#A140CD #CD40B2 #CD406C
triadic
#CD40B2 #B2CD40 #40B2CD
tetradic
#CD40B2 #CDA140 #40CD5B #406CCD
square
#CD40B2 #CDA140 #40CD5B #406CCD
split-complementary
#CD40B2 #6CCD40 #40CDA1
monochromatic
#741E64 #A52B8D #CD40B2 #DA71C6 #E6A1D9

Accessibility & contrast

On white

4.22
#CD40B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#CD40B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40B2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40B2#FFFFFF#000000##000000
##CD40B21.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#436DB5
Deuteranopia (green-blind)
#7283AF
Tritanopia (blue-blind)
#D74874
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cd40b2;
/* rgb */ color: rgb(205, 64, 178);
/* oklch */ color: oklch(61.2% 0.214 336.5);
Tailwind
colors: {
  custom: {
    50: '#e080c9',
    500: '#cd40b2',
    950: '#000000',
  },
}
SCSS
$custom: #cd40b2;
$custom-light: #e080c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40b2",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 311.489,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61161,
    "c": 0.21373,
    "h": 336.5
  },
  "luminance": 0.1986
}

Semantic roles & 50–950 ramp

primary
#CD40B2
secondary
#96D3A2
accent
#E26446
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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