#CD40BB#CD40BB

#CD40BB is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.220 H 333.5°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CD40BB
RGBrgb(205, 64, 187)
HSLhsl(308, 59%, 53%)
HSVhsv(308, 69%, 80%)
CMYKcmyk(0%, 68.8%, 8.8%, 19.6%)
CIE-LABlab(52.10, 68.15, -35.86)
CIE-LCHlch(52.10, 77.01, 332.25°)
OKLaboklab(61.6% 0.197 -0.0982)
OKLCHoklch(61.6% 0.22 333.5)
XYZxyz(35.9801, 20.2367, 49.0152)
Luminance0.2023 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40BB #40CD52
analogous
#9940CD #CD40BB #CD4074
triadic
#CD40BB #BBCD40 #40BBCD
tetradic
#CD40BB #CD9940 #40CD52 #4074CD
square
#CD40BB #CD9940 #40CD52 #4074CD
split-complementary
#CD40BB #74CD40 #40CD99
monochromatic
#741E69 #A52B95 #CD40BB #DA71CC #E6A1DE

Accessibility & contrast

On white

4.16
#CD40BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CD40BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40BB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40BB#FFFFFF#000000##000000
##CD40BB1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6FBE
Deuteranopia (green-blind)
#6E84B8
Tritanopia (blue-blind)
#D64C78
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd40bb;
/* rgb */ color: rgb(205, 64, 187);
/* oklch */ color: oklch(61.6% 0.220 333.5);
Tailwind
colors: {
  custom: {
    50: '#e080d0',
    500: '#cd40bb',
    950: '#000000',
  },
}
SCSS
$custom: #cd40bb;
$custom-light: #e080d0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40bb",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 307.66,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61604,
    "c": 0.22011,
    "h": 333.5
  },
  "luminance": 0.20234
}

Semantic roles & 50–950 ramp

primary
#CD40BB
secondary
#96D39E
accent
#E25A46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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