#CD40B4#CD40B4

#CD40B4 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.3% C 0.215 H 335.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#CD40B4
RGBrgb(205, 64, 180)
HSLhsl(311, 59%, 53%)
HSVhsv(311, 69%, 80%)
CMYKcmyk(0%, 68.8%, 12.2%, 19.6%)
CIE-LABlab(51.77, 67.10, -32.30)
CIE-LCHlch(51.77, 74.47, 334.29°)
OKLaboklab(61.26% 0.1963 -0.088)
OKLCHoklch(61.26% 0.215 335.9)
XYZxyz(35.2489, 19.9443, 45.1643)
Luminance0.1994 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40B4 #40CD59
analogous
#9F40CD #CD40B4 #CD406E
triadic
#CD40B4 #B4CD40 #40B4CD
tetradic
#CD40B4 #CD9F40 #40CD59 #406ECD
square
#CD40B4 #CD9F40 #40CD59 #406ECD
split-complementary
#CD40B4 #6ECD40 #40CD9F
monochromatic
#741E65 #A52B8F #CD40B4 #DA71C7 #E6A1DA

Accessibility & contrast

On white

4.21
#CD40B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#CD40B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40B4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40B4#FFFFFF#000000##000000
##CD40B41.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#416EB7
Deuteranopia (green-blind)
#7183B1
Tritanopia (blue-blind)
#D74975
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cd40b4;
/* rgb */ color: rgb(205, 64, 180);
/* oklch */ color: oklch(61.3% 0.215 335.9);
Tailwind
colors: {
  custom: {
    50: '#e080cb',
    500: '#cd40b4',
    950: '#000000',
  },
}
SCSS
$custom: #cd40b4;
$custom-light: #e080cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40b4",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 310.638,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61258,
    "c": 0.21512,
    "h": 335.9
  },
  "luminance": 0.19941
}

Semantic roles & 50–950 ramp

primary
#CD40B4
secondary
#96D3A1
accent
#E26246
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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