#CD9DFB#CD9DFB

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

Color values

HEX#CD9DFB
RGBrgb(205, 157, 251)
HSLhsl(271, 92%, 80%)
HSVhsv(271, 37%, 98%)
CMYKcmyk(18.3%, 37.5%, 0%, 1.6%)
CIE-LABlab(72.27, 35.29, -40.17)
CIE-LCHlch(72.27, 53.47, 311.30°)
OKLaboklab(77.5% 0.0835 -0.1112)
OKLCHoklch(77.5% 0.139 306.9)
XYZxyz(54.6430, 44.0585, 96.8736)
Luminance0.4406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9DFB #CBFB9D
analogous
#9E9DFB #CD9DFB #FB9DFA
triadic
#CD9DFB #FBCD9D #9DFBCD
tetradic
#CD9DFB #FB9E9D #CBFB9D #9DFAFB
square
#CD9DFB #FB9E9D #CBFB9D #9DFAFB
split-complementary
#CD9DFB #FAFB9D #9DFB9E
monochromatic
#9127F6 #AF62F9 #CD9DFB #EBD8FD #F0E2FE

Accessibility & contrast

On white

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

On black

9.81
#CD9DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9DFB
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9DFB#FFFFFF#000000##000000
##CD9DFB1.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AFFF
Deuteranopia (green-blind)
#94B2F8
Tritanopia (blue-blind)
#C7ABC0
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cd9dfb;
/* rgb */ color: rgb(205, 157, 251);
/* oklch */ color: oklch(77.5% 0.139 306.9);
Tailwind
colors: {
  custom: {
    50: '#ddbafd',
    500: '#cd9dfb',
    950: '#000000',
  },
}
SCSS
$custom: #cd9dfb;
$custom-light: #ddbafd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9dfb",
  "rgb": {
    "r": 205,
    "g": 157,
    "b": 251
  },
  "hsl": {
    "h": 270.638,
    "s": 92.157,
    "l": 80
  },
  "oklch": {
    "l": 0.77504,
    "c": 0.13909,
    "h": 306.9
  },
  "luminance": 0.44058
}

Semantic roles & 50–950 ramp

primary
#CD9DFB
secondary
#E5F6D5
accent
#E60070
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD9DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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