#CD7EC7#CD7EC7

#CD7EC7 is a light, vivid purple. Relative luminance 0.320; OKLCH L 70.1% C 0.135 H 329.6°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#CD7EC7
RGBrgb(205, 126, 199)
HSLhsl(305, 44%, 65%)
HSVhsv(305, 39%, 80%)
CMYKcmyk(0%, 38.5%, 2.9%, 19.6%)
CIE-LABlab(63.36, 41.59, -25.24)
CIE-LCHlch(63.36, 48.64, 328.75°)
OKLaboklab(70.09% 0.1169 -0.0685)
OKLCHoklch(70.09% 0.135 329.6)
XYZxyz(42.9459, 32.0264, 57.9413)
Luminance0.3202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EC7 #7ECD84
analogous
#AC7ECD #CD7EC7 #CD7EA0
triadic
#CD7EC7 #C7CD7E #7EC7CD
tetradic
#CD7EC7 #CDAC7E #7ECD84 #7EA0CD
square
#CD7EC7 #CDAC7E #7ECD84 #7EA0CD
split-complementary
#CD7EC7 #A0CD7E #7ECDAC
monochromatic
#963A8F #BC52B4 #CD7EC7 #DEAADA #EFD6ED

Accessibility & contrast

On white

2.84
#CD7EC7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#CD7EC7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EC7
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EC7#FFFFFF#000000##000000
##CD7EC71.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A93CA
Deuteranopia (green-blind)
#8F9DC4
Tritanopia (blue-blind)
#D38499
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #cd7ec7;
/* rgb */ color: rgb(205, 126, 199);
/* oklch */ color: oklch(70.1% 0.135 329.6);
Tailwind
colors: {
  custom: {
    50: '#dda5d8',
    500: '#cd7ec7',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ec7;
$custom-light: #dda5d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ec7",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 199
  },
  "hsl": {
    "h": 304.557,
    "s": 44.134,
    "l": 64.902
  },
  "oklch": {
    "l": 0.7009,
    "c": 0.13545,
    "h": 329.6
  },
  "luminance": 0.32024
}

Semantic roles & 50–950 ramp

primary
#CD7EC7
secondary
#C6E1C8
accent
#B7392E
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#150F14
muted
#837F83

Preview Lab

Preview with #CD7EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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