#CCAFEF#CCAFEF

#CCAFEF is a light, moderate violet. Relative luminance 0.497; OKLCH L 80.1% C 0.094 H 305.1°. Best body text is #000000 at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#CCAFEF
RGBrgb(204, 175, 239)
HSLhsl(267, 67%, 81%)
HSVhsv(267, 27%, 94%)
CMYKcmyk(14.6%, 26.8%, 0%, 6.3%)
CIE-LABlab(75.90, 22.56, -28.06)
CIE-LCHlch(75.90, 36.00, 308.80°)
OKLaboklab(80.1% 0.0539 -0.0768)
OKLCHoklch(80.1% 0.094 305.1)
XYZxyz(55.8088, 49.7295, 88.3033)
Luminance0.4973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAFEF #D2EFAF
analogous
#AFB2EF #CCAFEF #ECAFEF
triadic
#CCAFEF #EFCCAF #AFEFCC
tetradic
#CCAFEF #EFAFB2 #D2EFAF #AFEFEC
square
#CCAFEF #EFAFB2 #D2EFAF #AFEFEC
split-complementary
#CCAFEF #EFECAF #B2EFAF
monochromatic
#8B49DB #AB7CE5 #CCAFEF #EDE2F9 #EFE5FA

Accessibility & contrast

On white

1.92
#CCAFEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.95
#CCAFEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAFEF
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAFEF#FFFFFF#000000##000000
##CCAFEF1.001.9210.9510.95
#FFFFFF1.921.0021.0021.00
#00000010.9521.001.001.00
##00000010.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#A3BAF2
Deuteranopia (green-blind)
#A8BBED
Tritanopia (blue-blind)
#C7B8C6
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #ccafef;
/* rgb */ color: rgb(204, 175, 239);
/* oklch */ color: oklch(80.1% 0.094 305.1);
Tailwind
colors: {
  custom: {
    50: '#dcc7f4',
    500: '#ccafef',
    950: '#000000',
  },
}
SCSS
$custom: #ccafef;
$custom-light: #dcc7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ccafef",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 239
  },
  "hsl": {
    "h": 267.188,
    "s": 66.667,
    "l": 81.176
  },
  "oklch": {
    "l": 0.80103,
    "c": 0.09382,
    "h": 305.1
  },
  "luminance": 0.49729
}

Semantic roles & 50–950 ramp

primary
#CCAFEF
secondary
#E7F1DA
accent
#CF177B
background
#FDFCFE
surface
#FBF8FD
border
#D4D1D5
text
#151317
muted
#838285

Preview Lab

Preview with #CCAFEF

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

Preview Lab → · Contrast checker → · Palette generator →

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