#CD9FF2#CD9FF2

#CD9FF2 is a light, vivid violet. Relative luminance 0.442; OKLCH L 77.4% C 0.125 H 309.1°. Best body text is #000000 at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#CD9FF2
RGBrgb(205, 159, 242)
HSLhsl(273, 76%, 79%)
HSVhsv(273, 34%, 95%)
CMYKcmyk(15.3%, 34.3%, 0%, 5.1%)
CIE-LABlab(72.35, 32.26, -35.15)
CIE-LCHlch(72.35, 47.71, 312.54°)
OKLaboklab(77.45% 0.0787 -0.0968)
OKLCHoklch(77.45% 0.125 309.1)
XYZxyz(53.5991, 44.1868, 89.6925)
Luminance0.4419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9FF2 #C4F29F
analogous
#A39FF2 #CD9FF2 #F29FED
triadic
#CD9FF2 #F2CD9F #9FF2CD
tetradic
#CD9FF2 #F2A39F #C4F29F #9FEDF2
square
#CD9FF2 #F2A39F #C4F29F #9FEDF2
split-complementary
#CD9FF2 #EDF29F #9FF2A3
monochromatic
#9533E3 #B169EB #CD9FF2 #E9D5F9 #F1E4FB

Accessibility & contrast

On white

2.13
#CD9FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.84
#CD9FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9FF2
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9FF2#FFFFFF#000000##000000
##CD9FF21.002.139.849.84
#FFFFFF2.131.0021.0021.00
#0000009.8421.001.001.00
##0000009.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FAFF5
Deuteranopia (green-blind)
#99B2F0
Tritanopia (blue-blind)
#C9ABBE
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cd9ff2;
/* rgb */ color: rgb(205, 159, 242);
/* oklch */ color: oklch(77.4% 0.125 309.1);
Tailwind
colors: {
  custom: {
    50: '#ddbcf6',
    500: '#cd9ff2',
    950: '#000000',
  },
}
SCSS
$custom: #cd9ff2;
$custom-light: #ddbcf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9ff2",
  "rgb": {
    "r": 205,
    "g": 159,
    "b": 242
  },
  "hsl": {
    "h": 273.253,
    "s": 76.147,
    "l": 78.627
  },
  "oklch": {
    "l": 0.77447,
    "c": 0.12478,
    "h": 309.1
  },
  "luminance": 0.44186
}

Semantic roles & 50–950 ramp

primary
#CD9FF2
secondary
#E4F3D8
accent
#D80D68
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151217
muted
#838185

Preview Lab

Preview with #CD9FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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