#CCAFFC#CCAFFC

#CCAFFC is a light, moderate violet. Relative luminance 0.505; OKLCH L 80.6% C 0.111 H 301.2°. Best body text is #000000 at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#CCAFFC
RGBrgb(204, 175, 252)
HSLhsl(263, 93%, 84%)
HSVhsv(263, 31%, 99%)
CMYKcmyk(19%, 30.6%, 0%, 1.2%)
CIE-LABlab(76.39, 25.37, -34.32)
CIE-LCHlch(76.39, 42.68, 306.47°)
OKLaboklab(80.64% 0.0574 -0.0946)
OKLCHoklch(80.64% 0.111 301.2)
XYZxyz(57.7988, 50.5255, 98.7840)
Luminance0.5053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAFFC #DFFCAF
analogous
#AFB8FC #CCAFFC #F2AFFC
triadic
#CCAFFC #FCCCAF #AFFCCC
tetradic
#CCAFFC #FCAFB8 #DFFCAF #AFFCF2
square
#CCAFFC #FCAFB8 #DFFCAF #AFFCF2
split-complementary
#CCAFFC #FCF2AF #B8FCAF
monochromatic
#8139F8 #A674FA #CCAFFC #ECE2FE #ECE2FE

Accessibility & contrast

On white

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

On black

11.11
#CCAFFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAFFC
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAFFC#FFFFFF#000000##000000
##CCAFFC1.001.8911.1111.11
#FFFFFF1.891.0021.0021.00
#00000011.1121.001.001.00
##00000011.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccaffc;
/* rgb */ color: rgb(204, 175, 252);
/* oklch */ color: oklch(80.6% 0.111 301.2);
Tailwind
colors: {
  custom: {
    50: '#dcc7fd',
    500: '#ccaffc',
    950: '#000000',
  },
}
SCSS
$custom: #ccaffc;
$custom-light: #dcc7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaffc",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 252
  },
  "hsl": {
    "h": 262.597,
    "s": 92.771,
    "l": 83.725
  },
  "oklch": {
    "l": 0.80638,
    "c": 0.11063,
    "h": 301.2
  },
  "luminance": 0.50526
}

Semantic roles & 50–950 ramp

primary
#CCAFFC
secondary
#B6E06F
accent
#E6008F
background
#FEFDFF
surface
#FCF9FF
border
#D5D2D7
text
#151317
muted
#848285

Preview Lab

Preview with #CCAFFC

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

Preview Lab → · Contrast checker → · Palette generator →

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