#CD9AF8#CD9AF8

#CD9AF8 is a light, vivid violet. Relative luminance 0.429; OKLCH L 76.9% C 0.140 H 308.3°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#CD9AF8
RGBrgb(205, 154, 248)
HSLhsl(273, 87%, 79%)
HSVhsv(273, 38%, 97%)
CMYKcmyk(17.3%, 37.9%, 0%, 2.7%)
CIE-LABlab(71.47, 36.27, -39.79)
CIE-LCHlch(71.47, 53.84, 312.35°)
OKLaboklab(76.85% 0.0871 -0.1101)
OKLCHoklch(76.85% 0.14 308.3)
XYZxyz(53.6725, 42.8682, 94.2356)
Luminance0.4287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9AF8 #C5F89A
analogous
#9E9AF8 #CD9AF8 #F89AF4
triadic
#CD9AF8 #F8CD9A #9AF8CD
tetradic
#CD9AF8 #F89E9A #C5F89A #9AF4F8
square
#CD9AF8 #F89E9A #C5F89A #9AF4F8
split-complementary
#CD9AF8 #F4F89A #9AF89E
monochromatic
#9428F0 #B161F4 #CD9AF8 #E9D3FC #F1E2FD

Accessibility & contrast

On white

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

On black

9.57
#CD9AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9AF8
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9AF8#FFFFFF#000000##000000
##CD9AF81.002.199.579.57
#FFFFFF2.191.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87ADFC
Deuteranopia (green-blind)
#92B0F5
Tritanopia (blue-blind)
#C7A8BD
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cd9af8;
/* rgb */ color: rgb(205, 154, 248);
/* oklch */ color: oklch(76.9% 0.140 308.3);
Tailwind
colors: {
  custom: {
    50: '#ddb8fb',
    500: '#cd9af8',
    950: '#000000',
  },
}
SCSS
$custom: #cd9af8;
$custom-light: #ddb8fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9af8",
  "rgb": {
    "r": 205,
    "g": 154,
    "b": 248
  },
  "hsl": {
    "h": 272.553,
    "s": 87.037,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76855,
    "c": 0.1404,
    "h": 308.3
  },
  "luminance": 0.42868
}

Semantic roles & 50–950 ramp

primary
#CD9AF8
secondary
#E4F5D6
accent
#E40269
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD9AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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