#CD7DE8#CD7DE8

#CD7DE8 is a light, vivid purple. Relative luminance 0.335; OKLCH L 71.4% C 0.170 H 317.1°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#CD7DE8
RGBrgb(205, 125, 232)
HSLhsl(285, 70%, 70%)
HSVhsv(285, 46%, 91%)
CMYKcmyk(11.6%, 46.1%, 0%, 9%)
CIE-LABlab(64.54, 48.43, -41.84)
CIE-LCHlch(64.54, 64.00, 319.18°)
OKLaboklab(71.43% 0.1248 -0.1159)
OKLCHoklch(71.43% 0.17 317.1)
XYZxyz(47.0739, 33.4740, 80.3097)
Luminance0.3347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DE8 #98E87D
analogous
#987DE8 #CD7DE8 #E87DCD
triadic
#CD7DE8 #E8CD7D #7DE8CD
tetradic
#CD7DE8 #E8987D #98E87D #7DCDE8
square
#CD7DE8 #E8987D #98E87D #7DCDE8
split-complementary
#CD7DE8 #CDE87D #7DE898
monochromatic
#9E23C7 #B949DF #CD7DE8 #E1B1F1 #F5E5FA

Accessibility & contrast

On white

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

On black

7.69
#CD7DE8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DE8
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DE8#FFFFFF#000000##000000
##CD7DE81.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A97EC
Deuteranopia (green-blind)
#809FE5
Tritanopia (blue-blind)
#CC8CA8
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cd7de8;
/* rgb */ color: rgb(205, 125, 232);
/* oklch */ color: oklch(71.4% 0.170 317.1);
Tailwind
colors: {
  custom: {
    50: '#dea5ef',
    500: '#cd7de8',
    950: '#000000',
  },
}
SCSS
$custom: #cd7de8;
$custom-light: #dea5ef;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7de8",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 232
  },
  "hsl": {
    "h": 284.86,
    "s": 69.935,
    "l": 70
  },
  "oklch": {
    "l": 0.71427,
    "c": 0.17032,
    "h": 317.1
  },
  "luminance": 0.33473
}

Semantic roles & 50–950 ramp

primary
#CD7DE8
secondary
#D9EFD1
accent
#D21444
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD7DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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