#CD9DEC#CD9DEC

#CD9DEC is a light, vivid violet. Relative luminance 0.431; OKLCH L 76.8% C 0.121 H 311.5°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#CD9DEC
RGBrgb(205, 157, 236)
HSLhsl(276, 68%, 77%)
HSVhsv(276, 33%, 93%)
CMYKcmyk(13.1%, 33.5%, 0%, 7.5%)
CIE-LABlab(71.66, 32.08, -32.96)
CIE-LCHlch(71.66, 45.99, 314.23°)
OKLaboklab(76.84% 0.0801 -0.0906)
OKLCHoklch(76.84% 0.121 311.5)
XYZxyz(52.3715, 43.1499, 84.9105)
Luminance0.4315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9DEC #BCEC9D
analogous
#A69DEC #CD9DEC #EC9DE3
triadic
#CD9DEC #ECCD9D #9DECCD
tetradic
#CD9DEC #ECA69D #BCEC9D #9DE3EC
square
#CD9DEC #ECA69D #BCEC9D #9DE3EC
split-complementary
#CD9DEC #E3EC9D #9DECA6
monochromatic
#9936D8 #B36AE2 #CD9DEC #E7D0F6 #F2E5FA

Accessibility & contrast

On white

2.18
#CD9DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.63
#CD9DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9DEC
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9DEC#FFFFFF#000000##000000
##CD9DEC1.002.189.639.63
#FFFFFF2.181.0021.0021.00
#0000009.6321.001.001.00
##0000009.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FADEF
Deuteranopia (green-blind)
#9AB1EA
Tritanopia (blue-blind)
#CAA8BA
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cd9dec;
/* rgb */ color: rgb(205, 157, 236);
/* oklch */ color: oklch(76.8% 0.121 311.5);
Tailwind
colors: {
  custom: {
    50: '#ddbaf2',
    500: '#cd9dec',
    950: '#000000',
  },
}
SCSS
$custom: #cd9dec;
$custom-light: #ddbaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9dec",
  "rgb": {
    "r": 205,
    "g": 157,
    "b": 236
  },
  "hsl": {
    "h": 276.456,
    "s": 67.521,
    "l": 77.059
  },
  "oklch": {
    "l": 0.76839,
    "c": 0.12093,
    "h": 311.5
  },
  "luminance": 0.43149
}

Semantic roles & 50–950 ramp

primary
#CD9DEC
secondary
#E3F2D9
accent
#CF165F
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD9DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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