#CD9CFB#CD9CFB

#CD9CFB is a light, vivid violet. Relative luminance 0.437; OKLCH L 77.3% C 0.141 H 307.1°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#CD9CFB
RGBrgb(205, 156, 251)
HSLhsl(271, 92%, 80%)
HSVhsv(271, 38%, 98%)
CMYKcmyk(18.3%, 37.8%, 0%, 1.6%)
CIE-LABlab(72.04, 35.83, -40.52)
CIE-LCHlch(72.04, 54.10, 311.48°)
OKLaboklab(77.33% 0.0849 -0.1122)
OKLCHoklch(77.33% 0.141 307.1)
XYZxyz(54.4745, 43.7216, 96.8174)
Luminance0.4372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9CFB #CAFB9C
analogous
#9D9CFB #CD9CFB #FB9CFA
triadic
#CD9CFB #FBCD9C #9CFBCD
tetradic
#CD9CFB #FB9D9C #CAFB9C #9CFAFB
square
#CD9CFB #FB9D9C #CAFB9C #9CFAFB
split-complementary
#CD9CFB #FAFB9C #9CFB9D
monochromatic
#9226F6 #AF61F9 #CD9CFB #EBD7FD #F0E2FE

Accessibility & contrast

On white

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

On black

9.74
#CD9CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9CFB
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9CFB#FFFFFF#000000##000000
##CD9CFB1.002.169.749.74
#FFFFFF2.161.0021.0021.00
#0000009.7421.001.001.00
##0000009.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AFFF
Deuteranopia (green-blind)
#93B1F8
Tritanopia (blue-blind)
#C7AAC0
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cd9cfb;
/* rgb */ color: rgb(205, 156, 251);
/* oklch */ color: oklch(77.3% 0.141 307.1);
Tailwind
colors: {
  custom: {
    50: '#ddbafd',
    500: '#cd9cfb',
    950: '#000000',
  },
}
SCSS
$custom: #cd9cfb;
$custom-light: #ddbafd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9cfb",
  "rgb": {
    "r": 205,
    "g": 156,
    "b": 251
  },
  "hsl": {
    "h": 270.947,
    "s": 92.233,
    "l": 79.804
  },
  "oklch": {
    "l": 0.77333,
    "c": 0.14073,
    "h": 307.1
  },
  "luminance": 0.43721
}

Semantic roles & 50–950 ramp

primary
#CD9CFB
secondary
#E5F6D5
accent
#E6006F
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD9CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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