#CD45B5#CD45B5

#CD45B5 is a mid, highly saturated pink. Relative luminance 0.206; OKLCH L 61.8% C 0.210 H 335.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#CD45B5
RGBrgb(205, 69, 181)
HSLhsl(311, 58%, 54%)
HSVhsv(311, 66%, 80%)
CMYKcmyk(0%, 66.3%, 11.7%, 19.6%)
CIE-LABlab(52.48, 65.40, -31.78)
CIE-LCHlch(52.48, 72.71, 334.08°)
OKLaboklab(61.79% 0.1909 -0.0865)
OKLCHoklch(61.79% 0.21 335.6)
XYZxyz(35.6459, 20.5746, 45.8010)
Luminance0.2057 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD45B5 #45CD5D
analogous
#A145CD #CD45B5 #CD4571
triadic
#CD45B5 #B5CD45 #45B5CD
tetradic
#CD45B5 #CDA145 #45CD5D #4571CD
square
#CD45B5 #CDA145 #45CD5D #4571CD
split-complementary
#CD45B5 #71CD45 #45CDA1
monochromatic
#772068 #A82D92 #CD45B5 #DA75C8 #E7A5DB

Accessibility & contrast

On white

4.11
#CD45B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#CD45B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD45B5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD45B5#FFFFFF#000000##000000
##CD45B51.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4670B8
Deuteranopia (green-blind)
#7385B2
Tritanopia (blue-blind)
#D74E77
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd45b5;
/* rgb */ color: rgb(205, 69, 181);
/* oklch */ color: oklch(61.8% 0.210 335.6);
Tailwind
colors: {
  custom: {
    50: '#e083cb',
    500: '#cd45b5',
    950: '#000000',
  },
}
SCSS
$custom: #cd45b5;
$custom-light: #e083cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd45b5",
  "rgb": {
    "r": 205,
    "g": 69,
    "b": 181
  },
  "hsl": {
    "h": 310.588,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61785,
    "c": 0.20964,
    "h": 335.6
  },
  "luminance": 0.20572
}

Semantic roles & 50–950 ramp

primary
#CD45B5
secondary
#9AD4A4
accent
#E16247
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD45B5

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

Preview Lab → · Contrast checker → · Palette generator →

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