#CD7EC2#CD7EC2

#CD7EC2 is a light, vivid purple. Relative luminance 0.318; OKLCH L 69.9% C 0.131 H 332.0°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#CD7EC2
RGBrgb(205, 126, 194)
HSLhsl(308, 44%, 65%)
HSVhsv(308, 39%, 80%)
CMYKcmyk(0%, 38.5%, 5.4%, 19.6%)
CIE-LABlab(63.18, 40.69, -22.71)
CIE-LCHlch(63.18, 46.60, 330.84°)
OKLaboklab(69.89% 0.1156 -0.0614)
OKLCHoklch(69.89% 0.131 332)
XYZxyz(42.3749, 31.7980, 54.9341)
Luminance0.3180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EC2 #7ECD89
analogous
#B07ECD #CD7EC2 #CD7E9B
triadic
#CD7EC2 #C2CD7E #7EC2CD
tetradic
#CD7EC2 #CDB07E #7ECD89 #7E9BCD
square
#CD7EC2 #CDB07E #7ECD89 #7E9BCD
split-complementary
#CD7EC2 #9BCD7E #7ECDB0
monochromatic
#963A8A #BC52AD #CD7EC2 #DEAAD7 #EFD6EC

Accessibility & contrast

On white

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

On black

7.36
#CD7EC2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EC2
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EC2#FFFFFF#000000##000000
##CD7EC21.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C92C4
Deuteranopia (green-blind)
#909DC0
Tritanopia (blue-blind)
#D38397
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #cd7ec2;
/* rgb */ color: rgb(205, 126, 194);
/* oklch */ color: oklch(69.9% 0.131 332.0);
Tailwind
colors: {
  custom: {
    50: '#dda5d4',
    500: '#cd7ec2',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ec2;
$custom-light: #dda5d4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ec2",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 308.354,
    "s": 44.134,
    "l": 64.902
  },
  "oklch": {
    "l": 0.69886,
    "c": 0.13088,
    "h": 332
  },
  "luminance": 0.31796
}

Semantic roles & 50–950 ramp

primary
#CD7EC2
secondary
#C6E1CA
accent
#B7412E
background
#FDFAFD
surface
#FBF4FA
border
#D4CED3
text
#150F14
muted
#837F83

Preview Lab

Preview with #CD7EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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