#CCACFA#CCACFA

#CCACFA is a light, moderate violet. Relative luminance 0.492; OKLCH L 80.0% C 0.113 H 302.8°. Best body text is #000000 at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#CCACFA
RGBrgb(204, 172, 250)
HSLhsl(265, 89%, 83%)
HSVhsv(265, 31%, 98%)
CMYKcmyk(18.4%, 31.2%, 0%, 2%)
CIE-LABlab(75.60, 26.57, -34.46)
CIE-LCHlch(75.60, 43.52, 307.64°)
OKLaboklab(80.01% 0.0611 -0.095)
OKLCHoklch(80.01% 0.113 302.8)
XYZxyz(56.9061, 49.2446, 96.9312)
Luminance0.4924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCACFA #DAFAAC
analogous
#ACB3FA #CCACFA #F3ACFA
triadic
#CCACFA #FACCAC #ACFACC
tetradic
#CCACFA #FAACB3 #DAFAAC #ACFAF3
square
#CCACFA #FAACB3 #DAFAAC #ACFAF3
split-complementary
#CCACFA #FAF3AC #B3FAAC
monochromatic
#8539F3 #A972F7 #CCACFA #EDE2FD #EDE2FD

Accessibility & contrast

On white

1.94
#CCACFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.85
#CCACFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCACFA
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCACFA#FFFFFF#000000##000000
##CCACFA1.001.9410.8510.85
#FFFFFF1.941.0021.0021.00
#00000010.8521.001.001.00
##00000010.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9CBAFD
Deuteranopia (green-blind)
#A2BAF8
Tritanopia (blue-blind)
#C5B8C8
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #ccacfa;
/* rgb */ color: rgb(204, 172, 250);
/* oklch */ color: oklch(80.0% 0.113 302.8);
Tailwind
colors: {
  custom: {
    50: '#dcc5fc',
    500: '#ccacfa',
    950: '#000000',
  },
}
SCSS
$custom: #ccacfa;
$custom-light: #dcc5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ccacfa",
  "rgb": {
    "r": 204,
    "g": 172,
    "b": 250
  },
  "hsl": {
    "h": 264.615,
    "s": 88.636,
    "l": 82.745
  },
  "oklch": {
    "l": 0.80009,
    "c": 0.11292,
    "h": 302.8
  },
  "luminance": 0.49245
}

Semantic roles & 50–950 ramp

primary
#CCACFA
secondary
#E8F5D6
accent
#E50087
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151217
muted
#838185

Preview Lab

Preview with #CCACFA

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

Preview Lab → · Contrast checker → · Palette generator →

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