#CD7DEF#CD7DEF

#CD7DEF is a light, vivid purple. Relative luminance 0.339; OKLCH L 71.8% C 0.178 H 315.1°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#CD7DEF
RGBrgb(205, 125, 239)
HSLhsl(282, 78%, 71%)
HSVhsv(282, 48%, 94%)
CMYKcmyk(14.2%, 47.7%, 0%, 6.3%)
CIE-LABlab(64.87, 49.85, -45.20)
CIE-LCHlch(64.87, 67.29, 317.80°)
OKLaboklab(71.77% 0.1258 -0.1256)
OKLCHoklch(71.77% 0.178 315.1)
XYZxyz(48.0880, 33.8797, 85.6509)
Luminance0.3388 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DEF #9FEF7D
analogous
#947DEF #CD7DEF #EF7DD8
triadic
#CD7DEF #EFCD7D #7DEFCD
tetradic
#CD7DEF #EF947D #9FEF7D #7DD8EF
square
#CD7DEF #EF947D #9FEF7D #7DD8EF
split-complementary
#CD7DEF #D8EF7D #7DEF94
monochromatic
#9F1AD7 #B847E8 #CD7DEF #E2B3F6 #F5E4FC

Accessibility & contrast

On white

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

On black

7.78
#CD7DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DEF
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DEF#FFFFFF#000000##000000
##CD7DEF1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6699F3
Deuteranopia (green-blind)
#7DA0EC
Tritanopia (blue-blind)
#CB8EAB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7def;
/* rgb */ color: rgb(205, 125, 239);
/* oklch */ color: oklch(71.8% 0.178 315.1);
Tailwind
colors: {
  custom: {
    50: '#dea5f4',
    500: '#cd7def',
    950: '#000000',
  },
}
SCSS
$custom: #cd7def;
$custom-light: #dea5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7def",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 282.105,
    "s": 78.082,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71774,
    "c": 0.17776,
    "h": 315.1
  },
  "luminance": 0.33878
}

Semantic roles & 50–950 ramp

primary
#CD7DEF
secondary
#DEF3D5
accent
#DA0B49
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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