#CD7CEB#CD7CEB

#CD7CEB is a light, vivid purple. Relative luminance 0.334; OKLCH L 71.4% C 0.175 H 316.3°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#CD7CEB
RGBrgb(205, 124, 235)
HSLhsl(284, 74%, 70%)
HSVhsv(284, 47%, 92%)
CMYKcmyk(12.8%, 47.2%, 0%, 7.8%)
CIE-LABlab(64.48, 49.55, -43.60)
CIE-LCHlch(64.48, 66.00, 318.66°)
OKLaboklab(71.42% 0.1267 -0.1209)
OKLCHoklch(71.42% 0.175 316.3)
XYZxyz(47.3777, 33.3940, 82.5311)
Luminance0.3339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7CEB #9AEB7C
analogous
#957CEB #CD7CEB #EB7CD1
triadic
#CD7CEB #EBCD7C #7CEBCD
tetradic
#CD7CEB #EB957C #9AEB7C #7CD1EB
square
#CD7CEB #EB957C #9AEB7C #7CD1EB
split-complementary
#CD7CEB #D1EB7C #7CEB95
monochromatic
#9E1FCD #B947E3 #CD7CEB #E1B1F3 #F5E4FB

Accessibility & contrast

On white

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

On black

7.68
#CD7CEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7CEB
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7CEB#FFFFFF#000000##000000
##CD7CEB1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6797EF
Deuteranopia (green-blind)
#7E9FE8
Tritanopia (blue-blind)
#CC8CA9
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cd7ceb;
/* rgb */ color: rgb(205, 124, 235);
/* oklch */ color: oklch(71.4% 0.175 316.3);
Tailwind
colors: {
  custom: {
    50: '#dea4f2',
    500: '#cd7ceb',
    950: '#000000',
  },
}
SCSS
$custom: #cd7ceb;
$custom-light: #dea4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7ceb",
  "rgb": {
    "r": 205,
    "g": 124,
    "b": 235
  },
  "hsl": {
    "h": 283.784,
    "s": 73.51,
    "l": 70.392
  },
  "oklch": {
    "l": 0.71424,
    "c": 0.17512,
    "h": 316.3
  },
  "luminance": 0.33393
}

Semantic roles & 50–950 ramp

primary
#CD7CEB
secondary
#DAF1D2
accent
#D61045
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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