#CD7DEC#CD7DEC

#CD7DEC is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.6% C 0.175 H 315.9°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#CD7DEC
RGBrgb(205, 125, 236)
HSLhsl(283, 74%, 71%)
HSVhsv(283, 47%, 93%)
CMYKcmyk(13.1%, 47%, 0%, 7.5%)
CIE-LABlab(64.73, 49.24, -43.76)
CIE-LCHlch(64.73, 65.87, 318.37°)
OKLaboklab(71.62% 0.1254 -0.1214)
OKLCHoklch(71.62% 0.175 315.9)
XYZxyz(47.6485, 33.7039, 83.3361)
Luminance0.3370 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DEC #9CEC7D
analogous
#957DEC #CD7DEC #EC7DD4
triadic
#CD7DEC #ECCD7D #7DECCD
tetradic
#CD7DEC #EC957D #9CEC7D #7DD4EC
square
#CD7DEC #EC957D #9CEC7D #7DD4EC
split-complementary
#CD7DEC #D4EC7D #7DEC95
monochromatic
#9F1ED0 #B848E4 #CD7DEC #E2B2F4 #F5E4FB

Accessibility & contrast

On white

2.71
#CD7DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#CD7DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DEC
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DEC#FFFFFF#000000##000000
##CD7DEC1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6798F0
Deuteranopia (green-blind)
#7E9FE9
Tritanopia (blue-blind)
#CC8DAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7dec;
/* rgb */ color: rgb(205, 125, 236);
/* oklch */ color: oklch(71.6% 0.175 315.9);
Tailwind
colors: {
  custom: {
    50: '#dea5f2',
    500: '#cd7dec',
    950: '#000000',
  },
}
SCSS
$custom: #cd7dec;
$custom-light: #dea5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7dec",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 283.243,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71624,
    "c": 0.17457,
    "h": 315.9
  },
  "luminance": 0.33702
}

Semantic roles & 50–950 ramp

primary
#CD7DEC
secondary
#DCF1D3
accent
#D70F47
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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