#CCACFB#CCACFB

#CCACFB is a light, moderate violet. Relative luminance 0.493; OKLCH L 80.1% C 0.114 H 302.5°. Best body text is #000000 at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#CCACFB
RGBrgb(204, 172, 251)
HSLhsl(264, 91%, 83%)
HSVhsv(264, 31%, 98%)
CMYKcmyk(18.7%, 31.5%, 0%, 1.6%)
CIE-LABlab(75.64, 26.79, -34.94)
CIE-LCHlch(75.64, 44.03, 307.48°)
OKLaboklab(80.05% 0.0613 -0.0963)
OKLCHoklch(80.05% 0.114 302.5)
XYZxyz(57.0633, 49.3075, 97.7591)
Luminance0.4931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCACFB #DBFBAC
analogous
#ACB3FB #CCACFB #F4ACFB
triadic
#CCACFB #FBCCAC #ACFBCC
tetradic
#CCACFB #FBACB3 #DBFBAC #ACFBF4
square
#CCACFB #FBACB3 #DBFBAC #ACFBF4
split-complementary
#CCACFB #FBF4AC #B3FBAC
monochromatic
#8437F5 #A872F8 #CCACFB #EDE2FE #EDE2FE

Accessibility & contrast

On white

1.93
#CCACFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.86
#CCACFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCACFB
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCACFB#FFFFFF#000000##000000
##CCACFB1.001.9310.8610.86
#FFFFFF1.931.0021.0021.00
#00000010.8621.001.001.00
##00000010.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9BBAFE
Deuteranopia (green-blind)
#A1BAF9
Tritanopia (blue-blind)
#C4B8C9
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #ccacfb;
/* rgb */ color: rgb(204, 172, 251);
/* oklch */ color: oklch(80.1% 0.114 302.5);
Tailwind
colors: {
  custom: {
    50: '#dcc5fd',
    500: '#ccacfb',
    950: '#000000',
  },
}
SCSS
$custom: #ccacfb;
$custom-light: #dcc5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ccacfb",
  "rgb": {
    "r": 204,
    "g": 172,
    "b": 251
  },
  "hsl": {
    "h": 264.304,
    "s": 90.805,
    "l": 82.941
  },
  "oklch": {
    "l": 0.80052,
    "c": 0.1142,
    "h": 302.5
  },
  "luminance": 0.49307
}

Semantic roles & 50–950 ramp

primary
#CCACFB
secondary
#E9F6D5
accent
#E60089
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151217
muted
#838185

Preview Lab

Preview with #CCACFB

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

Preview Lab → · Contrast checker → · Palette generator →

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