#CD9FEF#CD9FEF

#CD9FEF is a light, vivid violet. Relative luminance 0.440; OKLCH L 77.3% C 0.121 H 310.1°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#CD9FEF
RGBrgb(205, 159, 239)
HSLhsl(275, 71%, 78%)
HSVhsv(275, 33%, 94%)
CMYKcmyk(14.2%, 33.5%, 0%, 6.3%)
CIE-LABlab(72.23, 31.62, -33.70)
CIE-LCHlch(72.23, 46.21, 313.17°)
OKLaboklab(77.32% 0.078 -0.0927)
OKLCHoklch(77.32% 0.121 310.1)
XYZxyz(53.1522, 44.0080, 87.3389)
Luminance0.4401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9FEF #C1EF9F
analogous
#A59FEF #CD9FEF #EF9FE9
triadic
#CD9FEF #EFCD9F #9FEFCD
tetradic
#CD9FEF #EFA59F #C1EF9F #9FE9EF
square
#CD9FEF #EFA59F #C1EF9F #9FE9EF
split-complementary
#CD9FEF #E9EF9F #9FEFA5
monochromatic
#9636DE #B26BE6 #CD9FEF #E8D3F8 #F1E5FB

Accessibility & contrast

On white

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

On black

9.80
#CD9FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9FEF
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9FEF#FFFFFF#000000##000000
##CD9FEF1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#91AFF2
Deuteranopia (green-blind)
#9BB2ED
Tritanopia (blue-blind)
#C9AABC
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cd9fef;
/* rgb */ color: rgb(205, 159, 239);
/* oklch */ color: oklch(77.3% 0.121 310.1);
Tailwind
colors: {
  custom: {
    50: '#ddbcf4',
    500: '#cd9fef',
    950: '#000000',
  },
}
SCSS
$custom: #cd9fef;
$custom-light: #ddbcf4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9fef",
  "rgb": {
    "r": 205,
    "g": 159,
    "b": 239
  },
  "hsl": {
    "h": 274.5,
    "s": 71.429,
    "l": 78.039
  },
  "oklch": {
    "l": 0.77317,
    "c": 0.12114,
    "h": 310.1
  },
  "luminance": 0.44007
}

Semantic roles & 50–950 ramp

primary
#CD9FEF
secondary
#E4F2D9
accent
#D31264
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151217
muted
#838185

Preview Lab

Preview with #CD9FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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