#CD398A#CD398A

#CD398A is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.8% C 0.198 H 351.4°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#CD398A
RGBrgb(205, 57, 138)
HSLhsl(327, 60%, 51%)
HSVhsv(327, 72%, 80%)
CMYKcmyk(0%, 72.2%, 32.7%, 19.6%)
CIE-LABlab(49.18, 64.05, -11.41)
CIE-LCHlch(49.18, 65.06, 349.90°)
OKLaboklab(58.81% 0.1959 -0.0295)
OKLCHoklch(58.81% 0.198 351.4)
XYZxyz(31.2292, 17.7440, 25.8202)
Luminance0.1774 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD398A #39CD7C
analogous
#C639CD #CD398A #CD3940
triadic
#CD398A #8ACD39 #398ACD
tetradic
#CD398A #CDC639 #39CD7C #3940CD
square
#CD398A #CDC639 #39CD7C #3940CD
split-complementary
#CD398A #40CD39 #39CDC6
monochromatic
#6F1C4A #A0286A #CD398A #D96AA7 #E69BC4

Accessibility & contrast

On white

4.62
#CD398A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#CD398A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CD398A
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD398A#FFFFFF#000000##FFFFFF
##CD398A1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52648C
Deuteranopia (green-blind)
#7C7F87
Tritanopia (blue-blind)
#DC2E5D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #cd398a;
/* rgb */ color: rgb(205, 57, 138);
/* oklch */ color: oklch(58.8% 0.198 351.4);
Tailwind
colors: {
  custom: {
    50: '#e17cac',
    500: '#cd398a',
    950: '#000000',
  },
}
SCSS
$custom: #cd398a;
$custom-light: #e17cac;
$custom-dark: #000000;
JSON
{
  "hex": "#cd398a",
  "rgb": {
    "r": 205,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 327.162,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5881,
    "c": 0.19813,
    "h": 351.4
  },
  "luminance": 0.1774
}

Semantic roles & 50–950 ramp

primary
#CD398A
secondary
#90D2AE
accent
#E38C45
background
#FEF8FA
surface
#FDEFF4
border
#D5CACE
text
#160A10
muted
#847C7F

Preview Lab

Preview with #CD398A

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

Preview Lab → · Contrast checker → · Palette generator →

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