#CD40BF#CD40BF

#CD40BF is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.8% C 0.223 H 332.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CD40BF
RGBrgb(205, 64, 191)
HSLhsl(306, 59%, 53%)
HSVhsv(306, 69%, 80%)
CMYKcmyk(0%, 68.8%, 6.8%, 19.6%)
CIE-LABlab(52.30, 68.76, -37.87)
CIE-LCHlch(52.30, 78.50, 331.15°)
OKLaboklab(61.81% 0.1973 -0.104)
OKLCHoklch(61.81% 0.223 332.2)
XYZxyz(36.4143, 20.4104, 51.3018)
Luminance0.2041 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40BF #40CD4E
analogous
#9440CD #CD40BF #CD4079
triadic
#CD40BF #BFCD40 #40BFCD
tetradic
#CD40BF #CD9440 #40CD4E #4079CD
square
#CD40BF #CD9440 #40CD4E #4079CD
split-complementary
#CD40BF #79CD40 #40CD94
monochromatic
#741E6C #A52B99 #CD40BF #DA71CF #E6A1E0

Accessibility & contrast

On white

4.13
#CD40BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#CD40BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40BF
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40BF#FFFFFF#000000##000000
##CD40BF1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3870C3
Deuteranopia (green-blind)
#6C84BB
Tritanopia (blue-blind)
#D64E7B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd40bf;
/* rgb */ color: rgb(205, 64, 191);
/* oklch */ color: oklch(61.8% 0.223 332.2);
Tailwind
colors: {
  custom: {
    50: '#e081d3',
    500: '#cd40bf',
    950: '#000000',
  },
}
SCSS
$custom: #cd40bf;
$custom-light: #e081d3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40bf",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 305.957,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61807,
    "c": 0.22304,
    "h": 332.2
  },
  "luminance": 0.20408
}

Semantic roles & 50–950 ramp

primary
#CD40BF
secondary
#96D39C
accent
#E25646
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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