#CD7DEA#CD7DEA

#CD7DEA is a light, vivid purple. Relative luminance 0.336; OKLCH L 71.5% C 0.172 H 316.5°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#CD7DEA
RGBrgb(205, 125, 234)
HSLhsl(284, 72%, 70%)
HSVhsv(284, 47%, 92%)
CMYKcmyk(12.4%, 46.6%, 0%, 8.2%)
CIE-LABlab(64.63, 48.83, -42.80)
CIE-LCHlch(64.63, 64.93, 318.77°)
OKLaboklab(71.53% 0.1251 -0.1186)
OKLCHoklch(71.53% 0.172 316.5)
XYZxyz(47.3595, 33.5883, 81.8144)
Luminance0.3359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DEA #9AEA7D
analogous
#977DEA #CD7DEA #EA7DD0
triadic
#CD7DEA #EACD7D #7DEACD
tetradic
#CD7DEA #EA977D #9AEA7D #7DD0EA
square
#CD7DEA #EA977D #9AEA7D #7DD0EA
split-complementary
#CD7DEA #D0EA7D #7DEA97
monochromatic
#9E21CC #B948E1 #CD7DEA #E1B2F3 #F5E5FB

Accessibility & contrast

On white

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

On black

7.72
#CD7DEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DEA
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DEA#FFFFFF#000000##000000
##CD7DEA1.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6998EE
Deuteranopia (green-blind)
#7F9FE7
Tritanopia (blue-blind)
#CC8DA9
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7dea;
/* rgb */ color: rgb(205, 125, 234);
/* oklch */ color: oklch(71.5% 0.172 316.5);
Tailwind
colors: {
  custom: {
    50: '#dea5f1',
    500: '#cd7dea',
    950: '#000000',
  },
}
SCSS
$custom: #cd7dea;
$custom-light: #dea5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7dea",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 234
  },
  "hsl": {
    "h": 284.037,
    "s": 72.185,
    "l": 70.392
  },
  "oklch": {
    "l": 0.71525,
    "c": 0.17244,
    "h": 316.5
  },
  "luminance": 0.33587
}

Semantic roles & 50–950 ramp

primary
#CD7DEA
secondary
#DAF0D2
accent
#D41145
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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