#CD28C4#CD28C4

#CD28C4 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 60.3% C 0.250 H 330.7°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#CD28C4
RGBrgb(205, 40, 196)
HSLhsl(303, 67%, 48%)
HSVhsv(303, 80%, 80%)
CMYKcmyk(0%, 80.5%, 4.4%, 19.6%)
CIE-LABlab(50.08, 76.60, -44.27)
CIE-LCHlch(50.08, 88.48, 329.97°)
OKLaboklab(60.3% 0.218 -0.1223)
OKLCHoklch(60.3% 0.25 330.7)
XYZxyz(35.8994, 18.4852, 53.8911)
Luminance0.1848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD28C4 #28CD31
analogous
#8428CD #CD28C4 #CD2871
triadic
#CD28C4 #C4CD28 #28C4CD
tetradic
#CD28C4 #CD8428 #28CD31 #2871CD
square
#CD28C4 #CD8428 #28CD31 #2871CD
split-complementary
#CD28C4 #71CD28 #28CD84
monochromatic
#671462 #9A1E93 #CD28C4 #DE54D6 #E888E2

Accessibility & contrast

On white

4.47
#CD28C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#CD28C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD28C4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD28C4#FFFFFF#000000##000000
##CD28C41.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0769C8
Deuteranopia (green-blind)
#607FC0
Tritanopia (blue-blind)
#D54177
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cd28c4;
/* rgb */ color: rgb(205, 40, 196);
/* oklch */ color: oklch(60.3% 0.250 330.7);
Tailwind
colors: {
  custom: {
    50: '#e177d6',
    500: '#cd28c4',
    950: '#000000',
  },
}
SCSS
$custom: #cd28c4;
$custom-light: #e177d6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd28c4",
  "rgb": {
    "r": 205,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 303.273,
    "s": 67.347,
    "l": 48.039
  },
  "oklch": {
    "l": 0.603,
    "c": 0.24995,
    "h": 330.7
  },
  "luminance": 0.18482
}

Semantic roles & 50–950 ramp

primary
#CD28C4
secondary
#80D184
accent
#EA473E
background
#FEF7FD
surface
#FDEEFA
border
#D5C9D3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CD28C4

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

Preview Lab → · Contrast checker → · Palette generator →

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