#CD7DEB#CD7DEB

#CD7DEB is a light, vivid purple. Relative luminance 0.336; OKLCH L 71.6% C 0.173 H 316.2°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#CD7DEB
RGBrgb(205, 125, 235)
HSLhsl(284, 73%, 71%)
HSVhsv(284, 47%, 92%)
CMYKcmyk(12.8%, 46.8%, 0%, 7.8%)
CIE-LABlab(64.68, 49.03, -43.28)
CIE-LCHlch(64.68, 65.40, 318.57°)
OKLaboklab(71.57% 0.1253 -0.12)
OKLCHoklch(71.57% 0.174 316.2)
XYZxyz(47.5036, 33.6459, 82.5731)
Luminance0.3365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DEB #9BEB7D
analogous
#967DEB #CD7DEB #EB7DD2
triadic
#CD7DEB #EBCD7D #7DEBCD
tetradic
#CD7DEB #EB967D #9BEB7D #7DD2EB
square
#CD7DEB #EB967D #9BEB7D #7DD2EB
split-complementary
#CD7DEB #D2EB7D #7DEB96
monochromatic
#9E20CE #B948E3 #CD7DEB #E1B2F3 #F5E4FB

Accessibility & contrast

On white

2.72
#CD7DEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#CD7DEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DEB
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DEB#FFFFFF#000000##000000
##CD7DEB1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898EF
Deuteranopia (green-blind)
#7F9FE8
Tritanopia (blue-blind)
#CC8DA9
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7deb;
/* rgb */ color: rgb(205, 125, 235);
/* oklch */ color: oklch(71.6% 0.173 316.2);
Tailwind
colors: {
  custom: {
    50: '#dea5f2',
    500: '#cd7deb',
    950: '#000000',
  },
}
SCSS
$custom: #cd7deb;
$custom-light: #dea5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7deb",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 283.636,
    "s": 73.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71574,
    "c": 0.1735,
    "h": 316.2
  },
  "luminance": 0.33645
}

Semantic roles & 50–950 ramp

primary
#CD7DEB
secondary
#DBF1D3
accent
#D51046
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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