#CD9DF2#CD9DF2

#CD9DF2 is a light, vivid violet. Relative luminance 0.435; OKLCH L 77.1% C 0.128 H 309.5°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#CD9DF2
RGBrgb(205, 157, 242)
HSLhsl(274, 77%, 78%)
HSVhsv(274, 35%, 95%)
CMYKcmyk(15.3%, 35.1%, 0%, 5.1%)
CIE-LABlab(71.90, 33.35, -35.86)
CIE-LCHlch(71.90, 48.97, 312.92°)
OKLaboklab(77.1% 0.0815 -0.0989)
OKLCHoklch(77.1% 0.128 309.5)
XYZxyz(53.2579, 43.5045, 89.5787)
Luminance0.4350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9DF2 #C2F29D
analogous
#A29DF2 #CD9DF2 #F29DED
triadic
#CD9DF2 #F2CD9D #9DF2CD
tetradic
#CD9DF2 #F2A29D #C2F29D #9DEDF2
square
#CD9DF2 #F2A29D #C2F29D #9DEDF2
split-complementary
#CD9DF2 #EDF29D #9DF2A2
monochromatic
#9631E4 #B167EB #CD9DF2 #E9D3F9 #F1E4FB

Accessibility & contrast

On white

2.16
#CD9DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#CD9DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9DF2
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9DF2#FFFFFF#000000##000000
##CD9DF21.002.169.709.70
#FFFFFF2.161.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DAEF5
Deuteranopia (green-blind)
#98B1F0
Tritanopia (blue-blind)
#C9A9BC
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cd9df2;
/* rgb */ color: rgb(205, 157, 242);
/* oklch */ color: oklch(77.1% 0.128 309.5);
Tailwind
colors: {
  custom: {
    50: '#ddbaf6',
    500: '#cd9df2',
    950: '#000000',
  },
}
SCSS
$custom: #cd9df2;
$custom-light: #ddbaf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9df2",
  "rgb": {
    "r": 205,
    "g": 157,
    "b": 242
  },
  "hsl": {
    "h": 273.882,
    "s": 76.577,
    "l": 78.235
  },
  "oklch": {
    "l": 0.771,
    "c": 0.12814,
    "h": 309.5
  },
  "luminance": 0.43504
}

Semantic roles & 50–950 ramp

primary
#CD9DF2
secondary
#E4F3D8
accent
#D90D66
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CD9DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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