#CD40BC#CD40BC

#CD40BC is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.221 H 333.2°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CD40BC
RGBrgb(205, 64, 188)
HSLhsl(307, 59%, 53%)
HSVhsv(307, 69%, 80%)
CMYKcmyk(0%, 68.8%, 8.3%, 19.6%)
CIE-LABlab(52.15, 68.30, -36.36)
CIE-LCHlch(52.15, 77.38, 331.97°)
OKLaboklab(61.65% 0.1971 -0.0996)
OKLCHoklch(61.65% 0.221 333.2)
XYZxyz(36.0875, 20.2797, 49.5809)
Luminance0.2028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40BC #40CD51
analogous
#9740CD #CD40BC #CD4075
triadic
#CD40BC #BCCD40 #40BCCD
tetradic
#CD40BC #CD9740 #40CD51 #4075CD
square
#CD40BC #CD9740 #40CD51 #4075CD
split-complementary
#CD40BC #75CD40 #40CD97
monochromatic
#741E6A #A52B96 #CD40BC #DA71CD #E6A1DE

Accessibility & contrast

On white

4.15
#CD40BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CD40BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40BC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40BC#FFFFFF#000000##000000
##CD40BC1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6FC0
Deuteranopia (green-blind)
#6D84B8
Tritanopia (blue-blind)
#D64D79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd40bc;
/* rgb */ color: rgb(205, 64, 188);
/* oklch */ color: oklch(61.7% 0.221 333.2);
Tailwind
colors: {
  custom: {
    50: '#e081d0',
    500: '#cd40bc',
    950: '#000000',
  },
}
SCSS
$custom: #cd40bc;
$custom-light: #e081d0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40bc",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 307.234,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61654,
    "c": 0.22084,
    "h": 333.2
  },
  "luminance": 0.20277
}

Semantic roles & 50–950 ramp

primary
#CD40BC
secondary
#96D39D
accent
#E25946
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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