#CD5198#CD5198

#CD5198 is a mid, vivid pink. Relative luminance 0.211; OKLCH L 61.9% C 0.174 H 348.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#CD5198
RGBrgb(205, 81, 152)
HSLhsl(326, 55%, 56%)
HSVhsv(326, 60%, 80%)
CMYKcmyk(0%, 60.5%, 25.9%, 19.6%)
CIE-LABlab(53.10, 56.37, -13.84)
CIE-LCHlch(53.10, 58.04, 346.21°)
OKLaboklab(61.85% 0.1704 -0.0363)
OKLCHoklch(61.85% 0.174 348)
XYZxyz(33.7880, 21.1343, 31.9995)
Luminance0.2113 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD5198 #51CD86
analogous
#C451CD #CD5198 #CD515A
triadic
#CD5198 #98CD51 #5198CD
tetradic
#CD5198 #CDC451 #51CD86 #515ACD
square
#CD5198 #CDC451 #51CD86 #515ACD
split-complementary
#CD5198 #5ACD51 #51CDC4
monochromatic
#7F2558 #AF3279 #CD5198 #DB81B4 #E8B0D0

Accessibility & contrast

On white

4.02
#CD5198 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#CD5198 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD5198
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD5198#FFFFFF#000000##000000
##CD51981.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F719A
Deuteranopia (green-blind)
#828795
Tritanopia (blue-blind)
#DA4D6E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cd5198;
/* rgb */ color: rgb(205, 81, 152);
/* oklch */ color: oklch(61.9% 0.174 348.0);
Tailwind
colors: {
  custom: {
    50: '#e088b6',
    500: '#cd5198',
    950: '#000000',
  },
}
SCSS
$custom: #cd5198;
$custom-light: #e088b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd5198",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 152
  },
  "hsl": {
    "h": 325.645,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61852,
    "c": 0.17421,
    "h": 348
  },
  "luminance": 0.21131
}

Semantic roles & 50–950 ramp

primary
#CD5198
secondary
#A3D7B9
accent
#DF8949
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C11
muted
#847D80

Preview Lab

Preview with #CD5198

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

Preview Lab → · Contrast checker → · Palette generator →

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