#CD40B9#CD40B9

#CD40B9 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.5% C 0.219 H 334.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CD40B9
RGBrgb(205, 64, 185)
HSLhsl(309, 59%, 53%)
HSVhsv(309, 69%, 80%)
CMYKcmyk(0%, 68.8%, 9.8%, 19.6%)
CIE-LABlab(52.01, 67.84, -34.85)
CIE-LCHlch(52.01, 76.27, 332.81°)
OKLaboklab(61.5% 0.1968 -0.0953)
OKLCHoklch(61.5% 0.219 334.2)
XYZxyz(35.7675, 20.1517, 47.8954)
Luminance0.2015 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40B9 #40CD54
analogous
#9B40CD #CD40B9 #CD4072
triadic
#CD40B9 #B9CD40 #40B9CD
tetradic
#CD40B9 #CD9B40 #40CD54 #4072CD
square
#CD40B9 #CD9B40 #40CD54 #4072CD
split-complementary
#CD40B9 #72CD40 #40CD9B
monochromatic
#741E68 #A52B93 #CD40B9 #DA71CB #E6A1DD

Accessibility & contrast

On white

4.18
#CD40B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CD40B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40B9
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40B9#FFFFFF#000000##000000
##CD40B91.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6FBC
Deuteranopia (green-blind)
#6F83B6
Tritanopia (blue-blind)
#D64C77
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd40b9;
/* rgb */ color: rgb(205, 64, 185);
/* oklch */ color: oklch(61.5% 0.219 334.2);
Tailwind
colors: {
  custom: {
    50: '#e080ce',
    500: '#cd40b9',
    950: '#000000',
  },
}
SCSS
$custom: #cd40b9;
$custom-light: #e080ce;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40b9",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 308.511,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61503,
    "c": 0.21867,
    "h": 334.2
  },
  "luminance": 0.20149
}

Semantic roles & 50–950 ramp

primary
#CD40B9
secondary
#96D39F
accent
#E25C46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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