#CD9CF8#CD9CF8

#CD9CF8 is a light, vivid violet. Relative luminance 0.435; OKLCH L 77.2% C 0.137 H 307.9°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#CD9CF8
RGBrgb(205, 156, 248)
HSLhsl(272, 87%, 79%)
HSVhsv(272, 37%, 97%)
CMYKcmyk(17.3%, 37.1%, 0%, 2.7%)
CIE-LABlab(71.92, 35.18, -39.09)
CIE-LCHlch(71.92, 52.59, 311.99°)
OKLaboklab(77.2% 0.0843 -0.1081)
OKLCHoklch(77.2% 0.137 307.9)
XYZxyz(54.0054, 43.5339, 94.3466)
Luminance0.4353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9CF8 #C7F89C
analogous
#9F9CF8 #CD9CF8 #F89CF5
triadic
#CD9CF8 #F8CD9C #9CF8CD
tetradic
#CD9CF8 #F89F9C #C7F89C #9CF5F8
square
#CD9CF8 #F89F9C #C7F89C #9CF5F8
split-complementary
#CD9CF8 #F5F89C #9CF89F
monochromatic
#932AF0 #B063F4 #CD9CF8 #EAD5FC #F1E2FD

Accessibility & contrast

On white

2.16
#CD9CF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#CD9CF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9CF8
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9CF8#FFFFFF#000000##000000
##CD9CF81.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#89AEFC
Deuteranopia (green-blind)
#94B1F5
Tritanopia (blue-blind)
#C7AABF
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cd9cf8;
/* rgb */ color: rgb(205, 156, 248);
/* oklch */ color: oklch(77.2% 0.137 307.9);
Tailwind
colors: {
  custom: {
    50: '#ddbafb',
    500: '#cd9cf8',
    950: '#000000',
  },
}
SCSS
$custom: #cd9cf8;
$custom-light: #ddbafb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9cf8",
  "rgb": {
    "r": 205,
    "g": 156,
    "b": 248
  },
  "hsl": {
    "h": 271.957,
    "s": 86.792,
    "l": 79.216
  },
  "oklch": {
    "l": 0.77196,
    "c": 0.13709,
    "h": 307.9
  },
  "luminance": 0.43533
}

Semantic roles & 50–950 ramp

primary
#CD9CF8
secondary
#E4F5D6
accent
#E3026B
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD9CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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