#CD40B0#CD40B0

#CD40B0 is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.1% C 0.212 H 337.2°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CD40B0
RGBrgb(205, 64, 176)
HSLhsl(312, 59%, 53%)
HSVhsv(312, 69%, 80%)
CMYKcmyk(0%, 68.8%, 14.1%, 19.6%)
CIE-LABlab(51.59, 66.52, -30.25)
CIE-LCHlch(51.59, 73.07, 335.54°)
OKLaboklab(61.07% 0.1958 -0.0821)
OKLCHoklch(61.07% 0.212 337.2)
XYZxyz(34.8473, 19.7836, 43.0492)
Luminance0.1978 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40B0 #40CD5D
analogous
#A340CD #CD40B0 #CD406A
triadic
#CD40B0 #B0CD40 #40B0CD
tetradic
#CD40B0 #CDA340 #40CD5D #406ACD
square
#CD40B0 #CDA340 #40CD5D #406ACD
split-complementary
#CD40B0 #6ACD40 #40CDA3
monochromatic
#741E63 #A52B8C #CD40B0 #DA71C4 #E6A1D8

Accessibility & contrast

On white

4.24
#CD40B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#CD40B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40B0
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40B0#FFFFFF#000000##000000
##CD40B01.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#446DB3
Deuteranopia (green-blind)
#7283AD
Tritanopia (blue-blind)
#D84873
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cd40b0;
/* rgb */ color: rgb(205, 64, 176);
/* oklch */ color: oklch(61.1% 0.212 337.2);
Tailwind
colors: {
  custom: {
    50: '#e080c8',
    500: '#cd40b0',
    950: '#000000',
  },
}
SCSS
$custom: #cd40b0;
$custom-light: #e080c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40b0",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 312.34,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61066,
    "c": 0.21235,
    "h": 337.2
  },
  "luminance": 0.19781
}

Semantic roles & 50–950 ramp

primary
#CD40B0
secondary
#96D3A2
accent
#E26646
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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