#CD27C2#CD27C2

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

Color values

HEX#CD27C2
RGBrgb(205, 39, 194)
HSLhsl(304, 68%, 48%)
HSVhsv(304, 81%, 80%)
CMYKcmyk(0%, 81%, 5.4%, 19.6%)
CIE-LABlab(49.89, 76.54, -43.41)
CIE-LCHlch(49.89, 87.99, 330.44°)
OKLaboklab(60.13% 0.2187 -0.1198)
OKLCHoklch(60.13% 0.249 331.3)
XYZxyz(35.6400, 18.3282, 52.6891)
Luminance0.1832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD27C2 #27CD32
analogous
#8527CD #CD27C2 #CD276F
triadic
#CD27C2 #C2CD27 #27C2CD
tetradic
#CD27C2 #CD8527 #27CD32 #276FCD
square
#CD27C2 #CD8527 #27CD32 #276FCD
split-complementary
#CD27C2 #6FCD27 #27CD85
monochromatic
#661361 #9A1D91 #CD27C2 #DE53D5 #E886E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD27C2#FFFFFF#000000##000000
##CD27C21.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)
#0C68C6
Deuteranopia (green-blind)
#617EBE
Tritanopia (blue-blind)
#D54076
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cd27c2;
/* rgb */ color: rgb(205, 39, 194);
/* oklch */ color: oklch(60.1% 0.249 331.3);
Tailwind
colors: {
  custom: {
    50: '#e177d5',
    500: '#cd27c2',
    950: '#000000',
  },
}
SCSS
$custom: #cd27c2;
$custom-light: #e177d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd27c2",
  "rgb": {
    "r": 205,
    "g": 39,
    "b": 194
  },
  "hsl": {
    "h": 303.976,
    "s": 68.033,
    "l": 47.843
  },
  "oklch": {
    "l": 0.60132,
    "c": 0.24935,
    "h": 331.3
  },
  "luminance": 0.18325
}

Semantic roles & 50–950 ramp

primary
#CD27C2
secondary
#7ED184
accent
#EB483D
background
#FEF7FD
surface
#FDEEFA
border
#D5C9D3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CD27C2

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

Preview Lab → · Contrast checker → · Palette generator →

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