#CD9DFC#CD9DFC

#CD9DFC is a light, vivid violet. Relative luminance 0.441; OKLCH L 77.5% C 0.140 H 306.6°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#CD9DFC
RGBrgb(205, 157, 252)
HSLhsl(270, 94%, 80%)
HSVhsv(270, 38%, 99%)
CMYKcmyk(18.7%, 37.7%, 0%, 1.2%)
CIE-LABlab(72.31, 35.51, -40.65)
CIE-LCHlch(72.31, 53.97, 311.14°)
OKLaboklab(77.55% 0.0837 -0.1126)
OKLCHoklch(77.55% 0.14 306.6)
XYZxyz(54.8010, 44.1218, 97.7060)
Luminance0.4412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9DFC #CCFC9D
analogous
#9E9DFC #CD9DFC #FC9DFB
triadic
#CD9DFC #FCCD9D #9DFCCD
tetradic
#CD9DFC #FC9E9D #CCFC9D #9DFBFC
square
#CD9DFC #FC9E9D #CCFC9D #9DFBFC
split-complementary
#CD9DFC #FBFC9D #9DFC9E
monochromatic
#9026F8 #AF62FA #CD9DFC #EBD8FE #F0E1FE

Accessibility & contrast

On white

2.14
#CD9DFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.82
#CD9DFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9DFC
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9DFC#FFFFFF#000000##000000
##CD9DFC1.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#89B0FF
Deuteranopia (green-blind)
#93B2F9
Tritanopia (blue-blind)
#C6ABC1
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cd9dfc;
/* rgb */ color: rgb(205, 157, 252);
/* oklch */ color: oklch(77.5% 0.140 306.6);
Tailwind
colors: {
  custom: {
    50: '#ddbafd',
    500: '#cd9dfc',
    950: '#000000',
  },
}
SCSS
$custom: #cd9dfc;
$custom-light: #ddbafd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9dfc",
  "rgb": {
    "r": 205,
    "g": 157,
    "b": 252
  },
  "hsl": {
    "h": 270.316,
    "s": 94.059,
    "l": 80.196
  },
  "oklch": {
    "l": 0.7755,
    "c": 0.14031,
    "h": 306.6
  },
  "luminance": 0.44121
}

Semantic roles & 50–950 ramp

primary
#CD9DFC
secondary
#E5F6D5
accent
#E60072
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151217
muted
#838185

Preview Lab

Preview with #CD9DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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