#CD40B5#CD40B5

#CD40B5 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.3% C 0.216 H 335.5°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#CD40B5
RGBrgb(205, 64, 181)
HSLhsl(310, 59%, 53%)
HSVhsv(310, 69%, 80%)
CMYKcmyk(0%, 68.8%, 11.7%, 19.6%)
CIE-LABlab(51.82, 67.25, -32.81)
CIE-LCHlch(51.82, 74.83, 333.99°)
OKLaboklab(61.31% 0.1964 -0.0895)
OKLCHoklch(61.31% 0.216 335.5)
XYZxyz(35.3512, 19.9852, 45.7028)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40B5 #40CD58
analogous
#9F40CD #CD40B5 #CD406E
triadic
#CD40B5 #B5CD40 #40B5CD
tetradic
#CD40B5 #CD9F40 #40CD58 #406ECD
square
#CD40B5 #CD9F40 #40CD58 #406ECD
split-complementary
#CD40B5 #6ECD40 #40CD9F
monochromatic
#741E66 #A52B90 #CD40B5 #DA71C8 #E6A1DB

Accessibility & contrast

On white

4.20
#CD40B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#CD40B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40B5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40B5#FFFFFF#000000##000000
##CD40B51.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#416EB8
Deuteranopia (green-blind)
#7083B2
Tritanopia (blue-blind)
#D74A75
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd40b5;
/* rgb */ color: rgb(205, 64, 181);
/* oklch */ color: oklch(61.3% 0.216 335.5);
Tailwind
colors: {
  custom: {
    50: '#e080cb',
    500: '#cd40b5',
    950: '#000000',
  },
}
SCSS
$custom: #cd40b5;
$custom-light: #e080cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40b5",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 310.213,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61306,
    "c": 0.21583,
    "h": 335.5
  },
  "luminance": 0.19982
}

Semantic roles & 50–950 ramp

primary
#CD40B5
secondary
#96D3A0
accent
#E26146
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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