#CD7CE8#CD7CE8

#CD7CE8 is a light, vivid purple. Relative luminance 0.332; OKLCH L 71.3% C 0.172 H 317.2°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#CD7CE8
RGBrgb(205, 124, 232)
HSLhsl(285, 70%, 70%)
HSVhsv(285, 47%, 91%)
CMYKcmyk(11.6%, 46.6%, 0%, 9%)
CIE-LABlab(64.34, 48.95, -42.15)
CIE-LCHlch(64.34, 64.60, 319.26°)
OKLaboklab(71.28% 0.1262 -0.1168)
OKLCHoklch(71.28% 0.172 317.2)
XYZxyz(46.9479, 33.2221, 80.2677)
Luminance0.3322 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7CE8 #97E87C
analogous
#977CE8 #CD7CE8 #E87CCD
triadic
#CD7CE8 #E8CD7C #7CE8CD
tetradic
#CD7CE8 #E8977C #97E87C #7CCDE8
square
#CD7CE8 #E8977C #97E87C #7CCDE8
split-complementary
#CD7CE8 #CDE87C #7CE897
monochromatic
#9E23C7 #B948DF #CD7CE8 #E1B0F1 #F5E4FA

Accessibility & contrast

On white

2.75
#CD7CE8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#CD7CE8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7CE8
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7CE8#FFFFFF#000000##000000
##CD7CE81.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6897EC
Deuteranopia (green-blind)
#7F9FE5
Tritanopia (blue-blind)
#CC8BA7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cd7ce8;
/* rgb */ color: rgb(205, 124, 232);
/* oklch */ color: oklch(71.3% 0.172 317.2);
Tailwind
colors: {
  custom: {
    50: '#dea4ef',
    500: '#cd7ce8',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ce8;
$custom-light: #dea4ef;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ce8",
  "rgb": {
    "r": 205,
    "g": 124,
    "b": 232
  },
  "hsl": {
    "h": 285,
    "s": 70.13,
    "l": 69.804
  },
  "oklch": {
    "l": 0.71276,
    "c": 0.17196,
    "h": 317.2
  },
  "luminance": 0.33221
}

Semantic roles & 50–950 ramp

primary
#CD7CE8
secondary
#D8EFD1
accent
#D21343
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD7CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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