#CD9CEF#CD9CEF

#CD9CEF is a light, vivid violet. Relative luminance 0.430; OKLCH L 76.8% C 0.126 H 310.7°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#CD9CEF
RGBrgb(205, 156, 239)
HSLhsl(275, 72%, 77%)
HSVhsv(275, 35%, 94%)
CMYKcmyk(14.2%, 34.7%, 0%, 6.3%)
CIE-LABlab(71.55, 33.26, -34.76)
CIE-LCHlch(71.55, 48.11, 313.73°)
OKLaboklab(76.8% 0.0823 -0.0957)
OKLCHoklch(76.8% 0.126 310.7)
XYZxyz(52.6425, 42.9888, 87.1691)
Luminance0.4299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9CEF #BEEF9C
analogous
#A49CEF #CD9CEF #EF9CE7
triadic
#CD9CEF #EFCD9C #9CEFCD
tetradic
#CD9CEF #EFA49C #BEEF9C #9CE7EF
square
#CD9CEF #EFA49C #BEEF9C #9CE7EF
split-complementary
#CD9CEF #E7EF9C #9CEFA4
monochromatic
#9833DE #B267E6 #CD9CEF #E8D1F8 #F2E5FB

Accessibility & contrast

On white

2.19
#CD9CEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.60
#CD9CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9CEF
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9CEF#FFFFFF#000000##000000
##CD9CEF1.002.199.609.60
#FFFFFF2.191.0021.0021.00
#0000009.6021.001.001.00
##0000009.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DADF2
Deuteranopia (green-blind)
#98B0ED
Tritanopia (blue-blind)
#C9A7BB
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cd9cef;
/* rgb */ color: rgb(205, 156, 239);
/* oklch */ color: oklch(76.8% 0.126 310.7);
Tailwind
colors: {
  custom: {
    50: '#ddb9f4',
    500: '#cd9cef',
    950: '#000000',
  },
}
SCSS
$custom: #cd9cef;
$custom-light: #ddb9f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9cef",
  "rgb": {
    "r": 205,
    "g": 156,
    "b": 239
  },
  "hsl": {
    "h": 275.422,
    "s": 72.174,
    "l": 77.451
  },
  "oklch": {
    "l": 0.76795,
    "c": 0.12622,
    "h": 310.7
  },
  "luminance": 0.42988
}

Semantic roles & 50–950 ramp

primary
#CD9CEF
secondary
#E3F2D9
accent
#D41161
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD9CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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