#CD9CEB#CD9CEB

#CD9CEB is a light, vivid violet. Relative luminance 0.428; OKLCH L 76.6% C 0.121 H 312.0°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#CD9CEB
RGBrgb(205, 156, 235)
HSLhsl(277, 66%, 77%)
HSVhsv(277, 34%, 92%)
CMYKcmyk(12.8%, 33.6%, 0%, 7.8%)
CIE-LABlab(71.39, 32.42, -32.83)
CIE-LCHlch(71.39, 46.14, 314.64°)
OKLaboklab(76.62% 0.0813 -0.0902)
OKLCHoklch(76.62% 0.121 312)
XYZxyz(52.0582, 42.7550, 84.0913)
Luminance0.4275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9CEB #BAEB9C
analogous
#A69CEB #CD9CEB #EB9CE2
triadic
#CD9CEB #EBCD9C #9CEBCD
tetradic
#CD9CEB #EBA69C #BAEB9C #9CE2EB
square
#CD9CEB #EBA69C #BAEB9C #9CE2EB
split-complementary
#CD9CEB #E2EB9C #9CEBA6
monochromatic
#9A36D6 #B369E1 #CD9CEB #E7CFF5 #F2E6FA

Accessibility & contrast

On white

2.20
#CD9CEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.55
#CD9CEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9CEB
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9CEB#FFFFFF#000000##000000
##CD9CEB1.002.209.559.55
#FFFFFF2.201.0021.0021.00
#0000009.5521.001.001.00
##0000009.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FACEE
Deuteranopia (green-blind)
#9AB0E9
Tritanopia (blue-blind)
#CAA7B9
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cd9ceb;
/* rgb */ color: rgb(205, 156, 235);
/* oklch */ color: oklch(76.6% 0.121 312.0);
Tailwind
colors: {
  custom: {
    50: '#ddb9f1',
    500: '#cd9ceb',
    950: '#000000',
  },
}
SCSS
$custom: #cd9ceb;
$custom-light: #ddb9f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9ceb",
  "rgb": {
    "r": 205,
    "g": 156,
    "b": 235
  },
  "hsl": {
    "h": 277.215,
    "s": 66.387,
    "l": 76.667
  },
  "oklch": {
    "l": 0.76622,
    "c": 0.12145,
    "h": 312
  },
  "luminance": 0.42754
}

Semantic roles & 50–950 ramp

primary
#CD9CEB
secondary
#E3F1DA
accent
#CE175D
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD9CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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