#CD51B3#CD51B3

#CD51B3 is a light, vivid pink. Relative luminance 0.221; OKLCH L 63.0% C 0.192 H 336.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#CD51B3
RGBrgb(205, 81, 179)
HSLhsl(313, 55%, 56%)
HSVhsv(313, 60%, 80%)
CMYKcmyk(0%, 60.5%, 12.7%, 19.6%)
CIE-LABlab(54.16, 60.22, -28.02)
CIE-LCHlch(54.16, 66.42, 335.05°)
OKLaboklab(62.98% 0.1763 -0.0759)
OKLCHoklch(62.98% 0.192 336.7)
XYZxyz(36.2564, 22.1216, 44.9994)
Luminance0.2212 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51B3 #51CD6B
analogous
#A951CD #CD51B3 #CD5175
triadic
#CD51B3 #B3CD51 #51B3CD
tetradic
#CD51B3 #CDA951 #51CD6B #5175CD
square
#CD51B3 #CDA951 #51CD6B #5175CD
split-complementary
#CD51B3 #75CD51 #51CDA9
monochromatic
#7F256C #AF3295 #CD51B3 #DB81C8 #E8B0DD

Accessibility & contrast

On white

3.87
#CD51B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#CD51B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51B3
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51B3#FFFFFF#000000##000000
##CD51B31.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5375B6
Deuteranopia (green-blind)
#7988B0
Tritanopia (blue-blind)
#D7577B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cd51b3;
/* rgb */ color: rgb(205, 81, 179);
/* oklch */ color: oklch(63.0% 0.192 336.7);
Tailwind
colors: {
  custom: {
    50: '#df89ca',
    500: '#cd51b3',
    950: '#000000',
  },
}
SCSS
$custom: #cd51b3;
$custom-light: #df89ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51b3",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 312.581,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6298,
    "c": 0.19191,
    "h": 336.7
  },
  "luminance": 0.22119
}

Semantic roles & 50–950 ramp

primary
#CD51B3
secondary
#A3D7AE
accent
#DF6849
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82

Preview Lab

Preview with #CD51B3

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

Preview Lab → · Contrast checker → · Palette generator →

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