#CCAFFE#CCAFFE

#CCAFFE is a light, moderate violet. Relative luminance 0.507; OKLCH L 80.7% C 0.113 H 300.8°. Best body text is #000000 at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#CCAFFE
RGBrgb(204, 175, 254)
HSLhsl(262, 98%, 84%)
HSVhsv(262, 31%, 100%)
CMYKcmyk(19.7%, 31.1%, 0%, 0.4%)
CIE-LABlab(76.47, 25.81, -35.28)
CIE-LCHlch(76.47, 43.71, 306.19°)
OKLaboklab(80.72% 0.0579 -0.0973)
OKLCHoklch(80.72% 0.113 300.8)
XYZxyz(58.1174, 50.6529, 100.4619)
Luminance0.5065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAFFE #E1FEAF
analogous
#AFBAFE #CCAFFE #F3AFFE
triadic
#CCAFFE #FECCAF #AFFECC
tetradic
#CCAFFE #FEAFBA #E1FEAF #AFFEF3
square
#CCAFFE #FEAFBA #E1FEAF #AFFEF3
split-complementary
#CCAFFE #FEF3AF #BAFEAF
monochromatic
#7F36FC #A573FD #CCAFFE #ECE1FF #ECE1FF

Accessibility & contrast

On white

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

On black

11.13
#CCAFFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAFFE
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAFFE#FFFFFF#000000##000000
##CCAFFE1.001.8911.1311.13
#FFFFFF1.891.0021.0021.00
#00000011.1321.001.001.00
##00000011.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccaffe;
/* rgb */ color: rgb(204, 175, 254);
/* oklch */ color: oklch(80.7% 0.113 300.8);
Tailwind
colors: {
  custom: {
    50: '#dcc7ff',
    500: '#ccaffe',
    950: '#000000',
  },
}
SCSS
$custom: #ccaffe;
$custom-light: #dcc7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaffe",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 254
  },
  "hsl": {
    "h": 262.025,
    "s": 97.531,
    "l": 84.118
  },
  "oklch": {
    "l": 0.80723,
    "c": 0.11323,
    "h": 300.8
  },
  "luminance": 0.50653
}

Semantic roles & 50–950 ramp

primary
#CCAFFE
secondary
#B8E46E
accent
#E60091
background
#FEFDFF
surface
#FCF9FF
border
#D5D2D7
text
#151318
muted
#848286

Preview Lab

Preview with #CCAFFE

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

Preview Lab → · Contrast checker → · Palette generator →

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