#CD7DC5#CD7DC5

#CD7DC5 is a light, vivid purple. Relative luminance 0.317; OKLCH L 69.8% C 0.135 H 330.6°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#CD7DC5
RGBrgb(205, 125, 197)
HSLhsl(306, 44%, 65%)
HSVhsv(306, 39%, 80%)
CMYKcmyk(0%, 39%, 3.9%, 19.6%)
CIE-LABlab(63.08, 41.76, -24.55)
CIE-LCHlch(63.08, 48.44, 329.55°)
OKLaboklab(69.85% 0.1179 -0.0665)
OKLCHoklch(69.85% 0.135 330.6)
XYZxyz(42.5880, 31.6797, 56.6840)
Luminance0.3168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DC5 #7DCD85
analogous
#AD7DCD #CD7DC5 #CD7D9D
triadic
#CD7DC5 #C5CD7D #7DC5CD
tetradic
#CD7DC5 #CDAD7D #7DCD85 #7D9DCD
square
#CD7DC5 #CDAD7D #7DCD85 #7D9DCD
split-complementary
#CD7DC5 #9DCD7D #7DCDAD
monochromatic
#963A8D #BC51B1 #CD7DC5 #DEA9D9 #EFD5EC

Accessibility & contrast

On white

2.86
#CD7DC5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#CD7DC5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DC5
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DC5#FFFFFF#000000##000000
##CD7DC51.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A92C8
Deuteranopia (green-blind)
#8F9DC2
Tritanopia (blue-blind)
#D38398
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #cd7dc5;
/* rgb */ color: rgb(205, 125, 197);
/* oklch */ color: oklch(69.8% 0.135 330.6);
Tailwind
colors: {
  custom: {
    50: '#dda4d6',
    500: '#cd7dc5',
    950: '#000000',
  },
}
SCSS
$custom: #cd7dc5;
$custom-light: #dda4d6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7dc5",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 197
  },
  "hsl": {
    "h": 306,
    "s": 44.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.69849,
    "c": 0.13534,
    "h": 330.6
  },
  "luminance": 0.31678
}

Semantic roles & 50–950 ramp

primary
#CD7DC5
secondary
#C5E1C8
accent
#B83C2E
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#150F14
muted
#837F83

Preview Lab

Preview with #CD7DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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