#CD51BC#CD51BC

#CD51BC is a light, vivid purple. Relative luminance 0.225; OKLCH L 63.4% C 0.199 H 333.4°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#CD51BC
RGBrgb(205, 81, 188)
HSLhsl(308, 55%, 56%)
HSVhsv(308, 60%, 80%)
CMYKcmyk(0%, 60.5%, 8.3%, 19.6%)
CIE-LABlab(54.55, 61.63, -32.61)
CIE-LCHlch(54.55, 69.72, 332.12°)
OKLaboklab(63.4% 0.1776 -0.089)
OKLCHoklch(63.4% 0.199 333.4)
XYZxyz(37.1965, 22.4976, 49.9506)
Luminance0.2250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51BC #51CD62
analogous
#A051CD #CD51BC #CD517E
triadic
#CD51BC #BCCD51 #51BCCD
tetradic
#CD51BC #CDA051 #51CD62 #517ECD
square
#CD51BC #CDA051 #51CD62 #517ECD
split-complementary
#CD51BC #7ECD51 #51CDA0
monochromatic
#7F2573 #AF329E #CD51BC #DB81CE #E8B0E1

Accessibility & contrast

On white

3.82
#CD51BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#CD51BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51BC
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51BC#FFFFFF#000000##000000
##CD51BC1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E77BF
Deuteranopia (green-blind)
#7689B9
Tritanopia (blue-blind)
#D65A7F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cd51bc;
/* rgb */ color: rgb(205, 81, 188);
/* oklch */ color: oklch(63.4% 0.199 333.4);
Tailwind
colors: {
  custom: {
    50: '#df89d0',
    500: '#cd51bc',
    950: '#000000',
  },
}
SCSS
$custom: #cd51bc;
$custom-light: #df89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51bc",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 308.226,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.63398,
    "c": 0.19867,
    "h": 333.4
  },
  "luminance": 0.22495
}

Semantic roles & 50–950 ramp

primary
#CD51BC
secondary
#A3D7AA
accent
#DF5E49
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160C14
muted
#847D82

Preview Lab

Preview with #CD51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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