#CD9AFE#CD9AFE

#CD9AFE is a light, vivid violet. Relative luminance 0.432; OKLCH L 77.1% C 0.148 H 306.7°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#CD9AFE
RGBrgb(205, 154, 254)
HSLhsl(271, 98%, 80%)
HSVhsv(271, 39%, 100%)
CMYKcmyk(19.3%, 39.4%, 0%, 0.4%)
CIE-LABlab(71.72, 37.58, -42.65)
CIE-LCHlch(71.72, 56.85, 311.38°)
OKLaboklab(77.13% 0.0883 -0.1184)
OKLCHoklch(77.13% 0.148 306.7)
XYZxyz(54.6183, 43.2465, 99.2168)
Luminance0.4325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9AFE #CBFE9A
analogous
#9B9AFE #CD9AFE #FE9AFD
triadic
#CD9AFE #FECD9A #9AFECD
tetradic
#CD9AFE #FE9B9A #CBFE9A #9AFDFE
square
#CD9AFE #FE9B9A #CBFE9A #9AFDFE
split-complementary
#CD9AFE #FDFE9A #9AFE9B
monochromatic
#9121FD #AF5DFD #CD9AFE #EBD7FF #F0E1FF

Accessibility & contrast

On white

2.18
#CD9AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.65
#CD9AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9AFE
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9AFE#FFFFFF#000000##000000
##CD9AFE1.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#84AEFF
Deuteranopia (green-blind)
#8FB0FB
Tritanopia (blue-blind)
#C6A9C0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cd9afe;
/* rgb */ color: rgb(205, 154, 254);
/* oklch */ color: oklch(77.1% 0.148 306.7);
Tailwind
colors: {
  custom: {
    50: '#deb8ff',
    500: '#cd9afe',
    950: '#000000',
  },
}
SCSS
$custom: #cd9afe;
$custom-light: #deb8ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9afe",
  "rgb": {
    "r": 205,
    "g": 154,
    "b": 254
  },
  "hsl": {
    "h": 270.6,
    "s": 98.039,
    "l": 80
  },
  "oklch": {
    "l": 0.77133,
    "c": 0.14764,
    "h": 306.7
  },
  "luminance": 0.43246
}

Semantic roles & 50–950 ramp

primary
#CD9AFE
secondary
#E5F7D4
accent
#E60070
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CD9AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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