#CCAFFB#CCAFFB

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

Color values

HEX#CCAFFB
RGBrgb(204, 175, 251)
HSLhsl(263, 90%, 84%)
HSVhsv(263, 30%, 98%)
CMYKcmyk(18.7%, 30.3%, 0%, 1.6%)
CIE-LABlab(76.35, 25.15, -33.84)
CIE-LCHlch(76.35, 42.16, 306.62°)
OKLaboklab(80.6% 0.0571 -0.0932)
OKLCHoklch(80.6% 0.109 301.5)
XYZxyz(57.6408, 50.4623, 97.9516)
Luminance0.5046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAFFB #DEFBAF
analogous
#AFB8FB #CCAFFB #F2AFFB
triadic
#CCAFFB #FBCCAF #AFFBCC
tetradic
#CCAFFB #FBAFB8 #DEFBAF #AFFBF2
square
#CCAFFB #FBAFB8 #DEFBAF #AFFBF2
split-complementary
#CCAFFB #FBF2AF #B8FBAF
monochromatic
#823AF5 #A775F8 #CCAFFB #ECE2FE #ECE2FE

Accessibility & contrast

On white

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

On black

11.09
#CCAFFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAFFB
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAFFB#FFFFFF#000000##000000
##CCAFFB1.001.8911.0911.09
#FFFFFF1.891.0021.0021.00
#00000011.0921.001.001.00
##00000011.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9FBCFE
Deuteranopia (green-blind)
#A4BCF9
Tritanopia (blue-blind)
#C4BBCA
Achromatopsia (no color)
#BCBCBC

Design tokens & code

CSS
--color: #ccaffb;
/* rgb */ color: rgb(204, 175, 251);
/* oklch */ color: oklch(80.6% 0.109 301.5);
Tailwind
colors: {
  custom: {
    50: '#dcc7fd',
    500: '#ccaffb',
    950: '#000000',
  },
}
SCSS
$custom: #ccaffb;
$custom-light: #dcc7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaffb",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 251
  },
  "hsl": {
    "h": 262.895,
    "s": 90.476,
    "l": 83.529
  },
  "oklch": {
    "l": 0.80596,
    "c": 0.10933,
    "h": 301.5
  },
  "luminance": 0.50462
}

Semantic roles & 50–950 ramp

primary
#CCAFFB
secondary
#B4DF6F
accent
#E6008E
background
#FEFDFF
surface
#FCF9FF
border
#D5D2D7
text
#151317
muted
#848285

Preview Lab

Preview with #CCAFFB

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

Preview Lab → · Contrast checker → · Palette generator →

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