#CD28C6#CD28C6

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

Color values

HEX#CD28C6
RGBrgb(205, 40, 198)
HSLhsl(303, 67%, 48%)
HSVhsv(303, 80%, 80%)
CMYKcmyk(0%, 80.5%, 3.4%, 19.6%)
CIE-LABlab(50.19, 76.90, -45.26)
CIE-LCHlch(50.19, 89.23, 329.52°)
OKLaboklab(60.41% 0.218 -0.1252)
OKLCHoklch(60.41% 0.251 330.1)
XYZxyz(36.1285, 18.5769, 55.0980)
Luminance0.1857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD28C6 #28CD2F
analogous
#8128CD #CD28C6 #CD2874
triadic
#CD28C6 #C6CD28 #28C6CD
tetradic
#CD28C6 #CD8128 #28CD2F #2874CD
square
#CD28C6 #CD8128 #28CD2F #2874CD
split-complementary
#CD28C6 #74CD28 #28CD81
monochromatic
#671463 #9A1E95 #CD28C6 #DE54D8 #E888E4

Accessibility & contrast

On white

4.45
#CD28C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD28C6#FFFFFF#000000##000000
##CD28C61.004.454.714.71
#FFFFFF4.451.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0069CA
Deuteranopia (green-blind)
#5F7FC2
Tritanopia (blue-blind)
#D54278
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cd28c6;
/* rgb */ color: rgb(205, 40, 198);
/* oklch */ color: oklch(60.4% 0.251 330.1);
Tailwind
colors: {
  custom: {
    50: '#e177d8',
    500: '#cd28c6',
    950: '#000000',
  },
}
SCSS
$custom: #cd28c6;
$custom-light: #e177d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd28c6",
  "rgb": {
    "r": 205,
    "g": 40,
    "b": 198
  },
  "hsl": {
    "h": 302.545,
    "s": 67.347,
    "l": 48.039
  },
  "oklch": {
    "l": 0.60413,
    "c": 0.25134,
    "h": 330.1
  },
  "luminance": 0.18574
}

Semantic roles & 50–950 ramp

primary
#CD28C6
secondary
#80D183
accent
#EA453E
background
#FEF7FD
surface
#FDEEFA
border
#D5C9D3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CD28C6

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

Preview Lab → · Contrast checker → · Palette generator →

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