#CD28C5#CD28C5

#CD28C5 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 60.4% C 0.251 H 330.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#CD28C5
RGBrgb(205, 40, 197)
HSLhsl(303, 67%, 48%)
HSVhsv(303, 80%, 80%)
CMYKcmyk(0%, 80.5%, 3.9%, 19.6%)
CIE-LABlab(50.13, 76.75, -44.77)
CIE-LCHlch(50.13, 88.85, 329.75°)
OKLaboklab(60.36% 0.218 -0.1237)
OKLCHoklch(60.36% 0.251 330.4)
XYZxyz(36.0136, 18.5309, 54.4926)
Luminance0.1853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD28C5 #28CD30
analogous
#8228CD #CD28C5 #CD2872
triadic
#CD28C5 #C5CD28 #28C5CD
tetradic
#CD28C5 #CD8228 #28CD30 #2872CD
square
#CD28C5 #CD8228 #28CD30 #2872CD
split-complementary
#CD28C5 #72CD28 #28CD82
monochromatic
#671463 #9A1E94 #CD28C5 #DE54D7 #E888E3

Accessibility & contrast

On white

4.46
#CD28C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#CD28C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD28C5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD28C5#FFFFFF#000000##000000
##CD28C51.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0369C9
Deuteranopia (green-blind)
#5F7FC1
Tritanopia (blue-blind)
#D54278
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cd28c5;
/* rgb */ color: rgb(205, 40, 197);
/* oklch */ color: oklch(60.4% 0.251 330.4);
Tailwind
colors: {
  custom: {
    50: '#e177d7',
    500: '#cd28c5',
    950: '#000000',
  },
}
SCSS
$custom: #cd28c5;
$custom-light: #e177d7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd28c5",
  "rgb": {
    "r": 205,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 302.909,
    "s": 67.347,
    "l": 48.039
  },
  "oklch": {
    "l": 0.60357,
    "c": 0.25065,
    "h": 330.4
  },
  "luminance": 0.18528
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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