#CD9DEF#CD9DEF

#CD9DEF is a light, vivid violet. Relative luminance 0.433; OKLCH L 77.0% C 0.125 H 310.5°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#CD9DEF
RGBrgb(205, 157, 239)
HSLhsl(275, 72%, 78%)
HSVhsv(275, 34%, 94%)
CMYKcmyk(14.2%, 34.3%, 0%, 6.3%)
CIE-LABlab(71.78, 32.71, -34.41)
CIE-LCHlch(71.78, 47.48, 313.55°)
OKLaboklab(76.97% 0.0808 -0.0947)
OKLCHoklch(76.97% 0.125 310.5)
XYZxyz(52.8110, 43.3258, 87.2252)
Luminance0.4333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9DEF #BFEF9D
analogous
#A49DEF #CD9DEF #EF9DE8
triadic
#CD9DEF #EFCD9D #9DEFCD
tetradic
#CD9DEF #EFA49D #BFEF9D #9DE8EF
square
#CD9DEF #EFA49D #BFEF9D #9DE8EF
split-complementary
#CD9DEF #E8EF9D #9DEFA4
monochromatic
#9734DE #B268E6 #CD9DEF #E8D2F8 #F2E5FB

Accessibility & contrast

On white

2.17
#CD9DEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#CD9DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9DEF
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9DEF#FFFFFF#000000##000000
##CD9DEF1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EAEF2
Deuteranopia (green-blind)
#99B1ED
Tritanopia (blue-blind)
#C9A8BB
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cd9def;
/* rgb */ color: rgb(205, 157, 239);
/* oklch */ color: oklch(77.0% 0.125 310.5);
Tailwind
colors: {
  custom: {
    50: '#ddbaf4',
    500: '#cd9def',
    950: '#000000',
  },
}
SCSS
$custom: #cd9def;
$custom-light: #ddbaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9def",
  "rgb": {
    "r": 205,
    "g": 157,
    "b": 239
  },
  "hsl": {
    "h": 275.122,
    "s": 71.93,
    "l": 77.647
  },
  "oklch": {
    "l": 0.76969,
    "c": 0.12453,
    "h": 310.5
  },
  "luminance": 0.43325
}

Semantic roles & 50–950 ramp

primary
#CD9DEF
secondary
#E3F2D9
accent
#D41262
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD9DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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