#CD7CE2#CD7CE2

#CD7CE2 is a light, vivid purple. Relative luminance 0.329; OKLCH L 71.0% C 0.166 H 319.1°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#CD7CE2
RGBrgb(205, 124, 226)
HSLhsl(288, 64%, 69%)
HSVhsv(288, 45%, 89%)
CMYKcmyk(9.3%, 45.1%, 0%, 11.4%)
CIE-LABlab(64.07, 47.75, -39.25)
CIE-LCHlch(64.07, 61.81, 320.58°)
OKLaboklab(70.99% 0.1253 -0.1084)
OKLCHoklch(70.99% 0.166 319.1)
XYZxyz(46.1102, 32.8870, 75.8557)
Luminance0.3288 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7CE2 #91E27C
analogous
#9A7CE2 #CD7CE2 #E27CC4
triadic
#CD7CE2 #E2CD7C #7CE2CD
tetradic
#CD7CE2 #E29A7C #91E27C #7CC4E2
square
#CD7CE2 #E29A7C #91E27C #7CC4E2
split-complementary
#CD7CE2 #C4E27C #7CE29A
monochromatic
#9C29BA #BA4AD7 #CD7CE2 #E0AEED #F3E0F8

Accessibility & contrast

On white

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

On black

7.58
#CD7CE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7CE2
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7CE2#FFFFFF#000000##000000
##CD7CE21.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C96E6
Deuteranopia (green-blind)
#829EDF
Tritanopia (blue-blind)
#CE89A4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cd7ce2;
/* rgb */ color: rgb(205, 124, 226);
/* oklch */ color: oklch(71.0% 0.166 319.1);
Tailwind
colors: {
  custom: {
    50: '#dea4eb',
    500: '#cd7ce2',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ce2;
$custom-light: #dea4eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ce2",
  "rgb": {
    "r": 205,
    "g": 124,
    "b": 226
  },
  "hsl": {
    "h": 287.647,
    "s": 63.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.70985,
    "c": 0.16568,
    "h": 319.1
  },
  "luminance": 0.32885
}

Semantic roles & 50–950 ramp

primary
#CD7CE2
secondary
#D4ECCE
accent
#CC1A3F
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CD7CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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