#CD7AEC#CD7AEC

#CD7AEC is a light, vivid purple. Relative luminance 0.330; OKLCH L 71.2% C 0.179 H 316.2°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#CD7AEC
RGBrgb(205, 122, 236)
HSLhsl(284, 75%, 70%)
HSVhsv(284, 48%, 93%)
CMYKcmyk(13.1%, 48.3%, 0%, 7.5%)
CIE-LABlab(64.13, 50.79, -44.71)
CIE-LCHlch(64.13, 67.66, 318.64°)
OKLaboklab(71.18% 0.1295 -0.1241)
OKLCHoklch(71.18% 0.179 316.2)
XYZxyz(47.2744, 32.9558, 83.2114)
Luminance0.3295 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AEC #99EC7A
analogous
#947AEC #CD7AEC #EC7AD2
triadic
#CD7AEC #ECCD7A #7AECCD
tetradic
#CD7AEC #EC947A #99EC7A #7AD2EC
square
#CD7AEC #EC947A #99EC7A #7AD2EC
split-complementary
#CD7AEC #D2EC7A #7AEC94
monochromatic
#9E1DCE #B944E4 #CD7AEC #E1B0F4 #F5E4FB

Accessibility & contrast

On white

2.77
#CD7AEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#CD7AEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AEC
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AEC#FFFFFF#000000##000000
##CD7AEC1.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6396F0
Deuteranopia (green-blind)
#7C9EE9
Tritanopia (blue-blind)
#CC8BA8
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cd7aec;
/* rgb */ color: rgb(205, 122, 236);
/* oklch */ color: oklch(71.2% 0.179 316.2);
Tailwind
colors: {
  custom: {
    50: '#dea3f2',
    500: '#cd7aec',
    950: '#000000',
  },
}
SCSS
$custom: #cd7aec;
$custom-light: #dea3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7aec",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 283.684,
    "s": 75,
    "l": 70.196
  },
  "oklch": {
    "l": 0.71177,
    "c": 0.17941,
    "h": 316.2
  },
  "luminance": 0.32954
}

Semantic roles & 50–950 ramp

primary
#CD7AEC
secondary
#DAF1D1
accent
#D70E45
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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