#CD40B3#CD40B3

#CD40B3 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.2% C 0.214 H 336.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#CD40B3
RGBrgb(205, 64, 179)
HSLhsl(311, 59%, 53%)
HSVhsv(311, 69%, 80%)
CMYKcmyk(0%, 68.8%, 12.7%, 19.6%)
CIE-LABlab(51.73, 66.95, -31.79)
CIE-LCHlch(51.73, 74.12, 334.60°)
OKLaboklab(61.21% 0.1962 -0.0865)
OKLCHoklch(61.21% 0.214 336.2)
XYZxyz(35.1474, 19.9037, 44.6298)
Luminance0.1990 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40B3 #40CD5A
analogous
#A140CD #CD40B3 #CD406C
triadic
#CD40B3 #B3CD40 #40B3CD
tetradic
#CD40B3 #CDA140 #40CD5A #406CCD
square
#CD40B3 #CDA140 #40CD5A #406CCD
split-complementary
#CD40B3 #6CCD40 #40CDA1
monochromatic
#741E64 #A52B8E #CD40B3 #DA71C6 #E6A1DA

Accessibility & contrast

On white

4.22
#CD40B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#CD40B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40B3
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40B3#FFFFFF#000000##000000
##CD40B31.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#426EB6
Deuteranopia (green-blind)
#7183B0
Tritanopia (blue-blind)
#D74974
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cd40b3;
/* rgb */ color: rgb(205, 64, 179);
/* oklch */ color: oklch(61.2% 0.214 336.2);
Tailwind
colors: {
  custom: {
    50: '#e080ca',
    500: '#cd40b3',
    950: '#000000',
  },
}
SCSS
$custom: #cd40b3;
$custom-light: #e080ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40b3",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 311.064,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61209,
    "c": 0.21442,
    "h": 336.2
  },
  "luminance": 0.19901
}

Semantic roles & 50–950 ramp

primary
#CD40B3
secondary
#96D3A1
accent
#E26346
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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