#CD40B1#CD40B1

#CD40B1 is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.1% C 0.213 H 336.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CD40B1
RGBrgb(205, 64, 177)
HSLhsl(312, 59%, 53%)
HSVhsv(312, 69%, 80%)
CMYKcmyk(0%, 68.8%, 13.7%, 19.6%)
CIE-LABlab(51.64, 66.66, -30.77)
CIE-LCHlch(51.64, 73.42, 335.22°)
OKLaboklab(61.11% 0.196 -0.0836)
OKLCHoklch(61.11% 0.213 336.9)
XYZxyz(34.9466, 19.8234, 43.5722)
Luminance0.1982 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40B1 #40CD5C
analogous
#A240CD #CD40B1 #CD406A
triadic
#CD40B1 #B1CD40 #40B1CD
tetradic
#CD40B1 #CDA240 #40CD5C #406ACD
square
#CD40B1 #CDA240 #40CD5C #406ACD
split-complementary
#CD40B1 #6ACD40 #40CDA2
monochromatic
#741E63 #A52B8D #CD40B1 #DA71C5 #E6A1D9

Accessibility & contrast

On white

4.23
#CD40B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#CD40B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40B1
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40B1#FFFFFF#000000##000000
##CD40B11.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#436DB4
Deuteranopia (green-blind)
#7283AE
Tritanopia (blue-blind)
#D84873
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cd40b1;
/* rgb */ color: rgb(205, 64, 177);
/* oklch */ color: oklch(61.1% 0.213 336.9);
Tailwind
colors: {
  custom: {
    50: '#e080c8',
    500: '#cd40b1',
    950: '#000000',
  },
}
SCSS
$custom: #cd40b1;
$custom-light: #e080c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40b1",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 311.915,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61113,
    "c": 0.21304,
    "h": 336.9
  },
  "luminance": 0.1982
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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