#CD7EEC#CD7EEC

#CD7EEC is a light, vivid purple. Relative luminance 0.340; OKLCH L 71.8% C 0.173 H 315.8°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#CD7EEC
RGBrgb(205, 126, 236)
HSLhsl(283, 74%, 71%)
HSVhsv(283, 47%, 93%)
CMYKcmyk(13.1%, 46.6%, 0%, 7.5%)
CIE-LABlab(64.93, 48.72, -43.44)
CIE-LCHlch(64.93, 65.27, 318.28°)
OKLaboklab(71.78% 0.1241 -0.1205)
OKLCHoklch(71.78% 0.173 315.8)
XYZxyz(47.7757, 33.9583, 83.3785)
Luminance0.3396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EEC #9DEC7E
analogous
#967EEC #CD7EEC #EC7ED4
triadic
#CD7EEC #ECCD7E #7EECCD
tetradic
#CD7EEC #EC967E #9DEC7E #7ED4EC
square
#CD7EEC #EC967E #9DEC7E #7ED4EC
split-complementary
#CD7EEC #D4EC7E #7EEC96
monochromatic
#9F1FD1 #B849E4 #CD7EEC #E2B3F4 #F5E4FB

Accessibility & contrast

On white

2.70
#CD7EEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#CD7EEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EEC
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EEC#FFFFFF#000000##000000
##CD7EEC1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6999F0
Deuteranopia (green-blind)
#7FA0E9
Tritanopia (blue-blind)
#CC8EAA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7eec;
/* rgb */ color: rgb(205, 126, 236);
/* oklch */ color: oklch(71.8% 0.173 315.8);
Tailwind
colors: {
  custom: {
    50: '#dea5f2',
    500: '#cd7eec',
    950: '#000000',
  },
}
SCSS
$custom: #cd7eec;
$custom-light: #dea5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7eec",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 283.091,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71775,
    "c": 0.17294,
    "h": 315.8
  },
  "luminance": 0.33957
}

Semantic roles & 50–950 ramp

primary
#CD7EEC
secondary
#DDF2D4
accent
#D60F47
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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