#CD51BA#CD51BA

#CD51BA is a light, vivid purple. Relative luminance 0.224; OKLCH L 63.3% C 0.197 H 334.1°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#CD51BA
RGBrgb(205, 81, 186)
HSLhsl(309, 55%, 56%)
HSVhsv(309, 60%, 80%)
CMYKcmyk(0%, 60.5%, 9.3%, 19.6%)
CIE-LABlab(54.46, 61.31, -31.59)
CIE-LCHlch(54.46, 68.97, 332.74°)
OKLaboklab(63.3% 0.1773 -0.0861)
OKLCHoklch(63.3% 0.197 334.1)
XYZxyz(36.9824, 22.4120, 48.8230)
Luminance0.2241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51BA #51CD64
analogous
#A251CD #CD51BA #CD517C
triadic
#CD51BA #BACD51 #51BACD
tetradic
#CD51BA #CDA251 #51CD64 #517CCD
square
#CD51BA #CDA251 #51CD64 #517CCD
split-complementary
#CD51BA #7CCD51 #51CDA2
monochromatic
#7F2571 #AF329C #CD51BA #DB81CD #E8B0E0

Accessibility & contrast

On white

3.83
#CD51BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#CD51BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51BA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51BA#FFFFFF#000000##000000
##CD51BA1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F77BD
Deuteranopia (green-blind)
#7789B7
Tritanopia (blue-blind)
#D65A7E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cd51ba;
/* rgb */ color: rgb(205, 81, 186);
/* oklch */ color: oklch(63.3% 0.197 334.1);
Tailwind
colors: {
  custom: {
    50: '#df89cf',
    500: '#cd51ba',
    950: '#000000',
  },
}
SCSS
$custom: #cd51ba;
$custom-light: #df89cf;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51ba",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 309.194,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.63303,
    "c": 0.19714,
    "h": 334.1
  },
  "luminance": 0.22409
}

Semantic roles & 50–950 ramp

primary
#CD51BA
secondary
#A3D7AB
accent
#DF6049
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160C14
muted
#847D82

Preview Lab

Preview with #CD51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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