#CD2D98#CD2D98

#CD2D98 is a mid, highly saturated pink. Relative luminance 0.171; OKLCH L 58.4% C 0.218 H 345.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#CD2D98
RGBrgb(205, 45, 152)
HSLhsl(320, 64%, 49%)
HSVhsv(320, 78%, 80%)
CMYKcmyk(0%, 78%, 25.9%, 19.6%)
CIE-LABlab(48.42, 69.38, -20.97)
CIE-LCHlch(48.42, 72.48, 343.18°)
OKLaboklab(58.43% 0.2106 -0.0558)
OKLCHoklch(58.43% 0.218 345.2)
XYZxyz(31.7841, 17.1264, 31.3316)
Luminance0.1712 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD2D98 #2DCD62
analogous
#B22DCD #CD2D98 #CD2D48
triadic
#CD2D98 #98CD2D #2D98CD
tetradic
#CD2D98 #CDB22D #2DCD62 #2D48CD
square
#CD2D98 #CDB22D #2DCD62 #2D48CD
split-complementary
#CD2D98 #48CD2D #2DCDB2
monochromatic
#69174E #9B2273 #CD2D98 #DB5CB1 #E68EC9

Accessibility & contrast

On white

4.75
#CD2D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#CD2D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CD2D98
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD2D98#FFFFFF#000000##FFFFFF
##CD2D981.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43629B
Deuteranopia (green-blind)
#747D94
Tritanopia (blue-blind)
#DB2A60
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #cd2d98;
/* rgb */ color: rgb(205, 45, 152);
/* oklch */ color: oklch(58.4% 0.218 345.2);
Tailwind
colors: {
  custom: {
    50: '#e177b6',
    500: '#cd2d98',
    950: '#000000',
  },
}
SCSS
$custom: #cd2d98;
$custom-light: #e177b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd2d98",
  "rgb": {
    "r": 205,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 319.875,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.58428,
    "c": 0.21782,
    "h": 345.2
  },
  "luminance": 0.17123
}

Semantic roles & 50–950 ramp

primary
#CD2D98
secondary
#85D19E
accent
#E77841
background
#FEF7FB
surface
#FDEEF6
border
#D5C9D0
text
#160A11
muted
#847C80

Preview Lab

Preview with #CD2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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