#CD7EC4#CD7EC4

#CD7EC4 is a light, vivid purple. Relative luminance 0.319; OKLCH L 70.0% C 0.133 H 331.1°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#CD7EC4
RGBrgb(205, 126, 196)
HSLhsl(307, 44%, 65%)
HSVhsv(307, 39%, 80%)
CMYKcmyk(0%, 38.5%, 4.4%, 19.6%)
CIE-LABlab(63.25, 41.05, -23.72)
CIE-LCHlch(63.25, 47.41, 329.98°)
OKLaboklab(69.97% 0.1161 -0.0642)
OKLCHoklch(69.97% 0.133 331.1)
XYZxyz(42.6010, 31.8884, 56.1250)
Luminance0.3189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EC4 #7ECD87
analogous
#AE7ECD #CD7EC4 #CD7E9D
triadic
#CD7EC4 #C4CD7E #7EC4CD
tetradic
#CD7EC4 #CDAE7E #7ECD87 #7E9DCD
square
#CD7EC4 #CDAE7E #7ECD87 #7E9DCD
split-complementary
#CD7EC4 #9DCD7E #7ECDAE
monochromatic
#963A8C #BC52B0 #CD7EC4 #DEAAD8 #EFD6EC

Accessibility & contrast

On white

2.85
#CD7EC4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#CD7EC4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EC4
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EC4#FFFFFF#000000##000000
##CD7EC41.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B92C7
Deuteranopia (green-blind)
#909DC2
Tritanopia (blue-blind)
#D38398
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #cd7ec4;
/* rgb */ color: rgb(205, 126, 196);
/* oklch */ color: oklch(70.0% 0.133 331.1);
Tailwind
colors: {
  custom: {
    50: '#dda5d6',
    500: '#cd7ec4',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ec4;
$custom-light: #dda5d6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ec4",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 196
  },
  "hsl": {
    "h": 306.835,
    "s": 44.134,
    "l": 64.902
  },
  "oklch": {
    "l": 0.69967,
    "c": 0.13269,
    "h": 331.1
  },
  "luminance": 0.31886
}

Semantic roles & 50–950 ramp

primary
#CD7EC4
secondary
#C6E1C9
accent
#B73E2E
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#150F14
muted
#837F83

Preview Lab

Preview with #CD7EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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