#CD28C1#CD28C1

#CD28C1 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 60.1% C 0.248 H 331.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#CD28C1
RGBrgb(205, 40, 193)
HSLhsl(304, 67%, 48%)
HSVhsv(304, 80%, 80%)
CMYKcmyk(0%, 80.5%, 5.9%, 19.6%)
CIE-LABlab(49.92, 76.16, -42.79)
CIE-LCHlch(49.92, 87.36, 330.67°)
OKLaboklab(60.13% 0.218 -0.118)
OKLCHoklch(60.13% 0.248 331.6)
XYZxyz(35.5613, 18.3500, 52.1107)
Luminance0.1835 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD28C1 #28CD34
analogous
#8728CD #CD28C1 #CD286E
triadic
#CD28C1 #C1CD28 #28C1CD
tetradic
#CD28C1 #CD8728 #28CD34 #286ECD
square
#CD28C1 #CD8728 #28CD34 #286ECD
split-complementary
#CD28C1 #6ECD28 #28CD87
monochromatic
#671461 #9A1E91 #CD28C1 #DE54D4 #E888E1

Accessibility & contrast

On white

4.50
#CD28C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#CD28C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD28C1
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD28C1#FFFFFF#000000##000000
##CD28C11.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1268C5
Deuteranopia (green-blind)
#627FBD
Tritanopia (blue-blind)
#D64076
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cd28c1;
/* rgb */ color: rgb(205, 40, 193);
/* oklch */ color: oklch(60.1% 0.248 331.6);
Tailwind
colors: {
  custom: {
    50: '#e177d4',
    500: '#cd28c1',
    950: '#000000',
  },
}
SCSS
$custom: #cd28c1;
$custom-light: #e177d4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd28c1",
  "rgb": {
    "r": 205,
    "g": 40,
    "b": 193
  },
  "hsl": {
    "h": 304.364,
    "s": 67.347,
    "l": 48.039
  },
  "oklch": {
    "l": 0.60133,
    "c": 0.24791,
    "h": 331.6
  },
  "luminance": 0.18347
}

Semantic roles & 50–950 ramp

primary
#CD28C1
secondary
#80D186
accent
#EA4A3E
background
#FEF7FD
surface
#FDEEFA
border
#D5C9D3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CD28C1

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

Preview Lab → · Contrast checker → · Palette generator →

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