#CD9DF7#CD9DF7

#CD9DF7 is a light, vivid violet. Relative luminance 0.438; OKLCH L 77.3% C 0.134 H 308.0°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#CD9DF7
RGBrgb(205, 157, 247)
HSLhsl(272, 85%, 79%)
HSVhsv(272, 36%, 97%)
CMYKcmyk(17%, 36.4%, 0%, 3.1%)
CIE-LABlab(72.10, 34.42, -38.26)
CIE-LCHlch(72.10, 51.47, 311.98°)
OKLaboklab(77.32% 0.0827 -0.1057)
OKLCHoklch(77.32% 0.134 308)
XYZxyz(54.0191, 43.8090, 93.5879)
Luminance0.4381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9DF7 #C7F79D
analogous
#A09DF7 #CD9DF7 #F79DF4
triadic
#CD9DF7 #F7CD9D #9DF7CD
tetradic
#CD9DF7 #F7A09D #C7F79D #9DF4F7
square
#CD9DF7 #F7A09D #C7F79D #9DF4F7
split-complementary
#CD9DF7 #F4F79D #9DF7A0
monochromatic
#932CEE #B064F2 #CD9DF7 #EAD6FC #F1E3FD

Accessibility & contrast

On white

2.15
#CD9DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#CD9DF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9DF7
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9DF7#FFFFFF#000000##000000
##CD9DF71.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BAFFA
Deuteranopia (green-blind)
#95B1F4
Tritanopia (blue-blind)
#C7AABF
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cd9df7;
/* rgb */ color: rgb(205, 157, 247);
/* oklch */ color: oklch(77.3% 0.134 308.0);
Tailwind
colors: {
  custom: {
    50: '#ddbafa',
    500: '#cd9df7',
    950: '#000000',
  },
}
SCSS
$custom: #cd9df7;
$custom-light: #ddbafa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9df7",
  "rgb": {
    "r": 205,
    "g": 157,
    "b": 247
  },
  "hsl": {
    "h": 272,
    "s": 84.906,
    "l": 79.216
  },
  "oklch": {
    "l": 0.77322,
    "c": 0.13422,
    "h": 308
  },
  "luminance": 0.43808
}

Semantic roles & 50–950 ramp

primary
#CD9DF7
secondary
#E4F5D6
accent
#E1046B
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD9DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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