#CD9AEC#CD9AEC

#CD9AEC is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.3% C 0.126 H 312.1°. Best body text is #000000 at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#CD9AEC
RGBrgb(205, 154, 236)
HSLhsl(277, 68%, 76%)
HSVhsv(277, 35%, 93%)
CMYKcmyk(13.1%, 34.7%, 0%, 7.5%)
CIE-LABlab(70.97, 33.72, -34.02)
CIE-LCHlch(70.97, 47.90, 314.75°)
OKLaboklab(76.32% 0.0844 -0.0936)
OKLCHoklch(76.32% 0.126 312.1)
XYZxyz(51.8702, 42.1473, 84.7433)
Luminance0.4215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9AEC #B9EC9A
analogous
#A49AEC #CD9AEC #EC9AE2
triadic
#CD9AEC #ECCD9A #9AECCD
tetradic
#CD9AEC #ECA49A #B9EC9A #9AE2EC
square
#CD9AEC #ECA49A #B9EC9A #9AE2EC
split-complementary
#CD9AEC #E2EC9A #9AECA4
monochromatic
#9A33D9 #B466E2 #CD9AEC #E7CEF6 #F2E5FA

Accessibility & contrast

On white

2.23
#CD9AEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.43
#CD9AEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9AEC
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9AEC#FFFFFF#000000##000000
##CD9AEC1.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CABEF
Deuteranopia (green-blind)
#97AFEA
Tritanopia (blue-blind)
#CAA5B8
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd9aec;
/* rgb */ color: rgb(205, 154, 236);
/* oklch */ color: oklch(76.3% 0.126 312.1);
Tailwind
colors: {
  custom: {
    50: '#ddb8f2',
    500: '#cd9aec',
    950: '#000000',
  },
}
SCSS
$custom: #cd9aec;
$custom-light: #ddb8f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9aec",
  "rgb": {
    "r": 205,
    "g": 154,
    "b": 236
  },
  "hsl": {
    "h": 277.317,
    "s": 68.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.76319,
    "c": 0.12605,
    "h": 312.1
  },
  "luminance": 0.42146
}

Semantic roles & 50–950 ramp

primary
#CD9AEC
secondary
#E3F2D9
accent
#D0155C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD9AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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