#CD7DE9#CD7DE9

#CD7DE9 is a light, vivid purple. Relative luminance 0.335; OKLCH L 71.5% C 0.171 H 316.8°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#CD7DE9
RGBrgb(205, 125, 233)
HSLhsl(284, 71%, 70%)
HSVhsv(284, 46%, 91%)
CMYKcmyk(12%, 46.4%, 0%, 8.6%)
CIE-LABlab(64.59, 48.63, -42.32)
CIE-LCHlch(64.59, 64.46, 318.97°)
OKLaboklab(71.48% 0.125 -0.1172)
OKLCHoklch(71.48% 0.171 316.8)
XYZxyz(47.2163, 33.5310, 81.0599)
Luminance0.3353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DE9 #99E97D
analogous
#977DE9 #CD7DE9 #E97DCF
triadic
#CD7DE9 #E9CD7D #7DE9CD
tetradic
#CD7DE9 #E9977D #99E97D #7DCFE9
square
#CD7DE9 #E9977D #99E97D #7DCFE9
split-complementary
#CD7DE9 #CFE97D #7DE997
monochromatic
#9E22CA #B949E0 #CD7DE9 #E1B1F2 #F5E5FB

Accessibility & contrast

On white

2.73
#CD7DE9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#CD7DE9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DE9
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DE9#FFFFFF#000000##000000
##CD7DE91.002.737.717.71
#FFFFFF2.731.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6998ED
Deuteranopia (green-blind)
#809FE6
Tritanopia (blue-blind)
#CC8CA8
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7de9;
/* rgb */ color: rgb(205, 125, 233);
/* oklch */ color: oklch(71.5% 0.171 316.8);
Tailwind
colors: {
  custom: {
    50: '#dea5f0',
    500: '#cd7de9',
    950: '#000000',
  },
}
SCSS
$custom: #cd7de9;
$custom-light: #dea5f0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7de9",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 233
  },
  "hsl": {
    "h": 284.444,
    "s": 71.053,
    "l": 70.196
  },
  "oklch": {
    "l": 0.71476,
    "c": 0.17138,
    "h": 316.8
  },
  "luminance": 0.3353
}

Semantic roles & 50–950 ramp

primary
#CD7DE9
secondary
#DAF0D2
accent
#D31244
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD7DE9

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

Preview Lab → · Contrast checker → · Palette generator →

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