#CCAFFD#CCAFFD

#CCAFFD is a light, moderate violet. Relative luminance 0.506; OKLCH L 80.7% C 0.112 H 301.0°. Best body text is #000000 at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#CCAFFD
RGBrgb(204, 175, 253)
HSLhsl(262, 95%, 84%)
HSVhsv(262, 31%, 99%)
CMYKcmyk(19.4%, 30.8%, 0%, 0.8%)
CIE-LABlab(76.43, 25.59, -34.80)
CIE-LCHlch(76.43, 43.20, 306.33°)
OKLaboklab(80.68% 0.0576 -0.0959)
OKLCHoklch(80.68% 0.112 301)
XYZxyz(57.9577, 50.5891, 99.6208)
Luminance0.5059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAFFD #E0FDAF
analogous
#AFB9FD #CCAFFD #F3AFFD
triadic
#CCAFFD #FDCCAF #AFFDCC
tetradic
#CCAFFD #FDAFB9 #E0FDAF #AFFDF3
square
#CCAFFD #FDAFB9 #E0FDAF #AFFDF3
split-complementary
#CCAFFD #FDF3AF #B9FDAF
monochromatic
#8038FA #A673FC #CCAFFD #ECE1FE #ECE1FE

Accessibility & contrast

On white

1.89
#CCAFFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.12
#CCAFFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAFFD
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAFFD#FFFFFF#000000##000000
##CCAFFD1.001.8911.1211.12
#FFFFFF1.891.0021.0021.00
#00000011.1221.001.001.00
##00000011.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9EBCFF
Deuteranopia (green-blind)
#A3BCFB
Tritanopia (blue-blind)
#C4BBCB
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccaffd;
/* rgb */ color: rgb(204, 175, 253);
/* oklch */ color: oklch(80.7% 0.112 301.0);
Tailwind
colors: {
  custom: {
    50: '#dcc7fe',
    500: '#ccaffd',
    950: '#000000',
  },
}
SCSS
$custom: #ccaffd;
$custom-light: #dcc7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaffd",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 253
  },
  "hsl": {
    "h": 262.308,
    "s": 95.122,
    "l": 83.922
  },
  "oklch": {
    "l": 0.8068,
    "c": 0.11193,
    "h": 301
  },
  "luminance": 0.50589
}

Semantic roles & 50–950 ramp

primary
#CCAFFD
secondary
#B7E26E
accent
#E60090
background
#FEFDFF
surface
#FCF9FF
border
#D5D2D7
text
#151318
muted
#848286

Preview Lab

Preview with #CCAFFD

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

Preview Lab → · Contrast checker → · Palette generator →

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