#CCAFF2#CCAFF2

#CCAFF2 is a light, moderate violet. Relative luminance 0.499; OKLCH L 80.2% C 0.098 H 304.1°. Best body text is #000000 at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#CCAFF2
RGBrgb(204, 175, 242)
HSLhsl(266, 72%, 82%)
HSVhsv(266, 28%, 95%)
CMYKcmyk(15.7%, 27.7%, 0%, 5.1%)
CIE-LABlab(76.01, 23.20, -29.51)
CIE-LCHlch(76.01, 37.53, 308.17°)
OKLaboklab(80.22% 0.0547 -0.0809)
OKLCHoklch(80.22% 0.098 304.1)
XYZxyz(56.2557, 49.9083, 90.6568)
Luminance0.4991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAFF2 #D5F2AF
analogous
#AFB4F2 #CCAFF2 #EEAFF2
triadic
#CCAFF2 #F2CCAF #AFF2CC
tetradic
#CCAFF2 #F2AFB4 #D5F2AF #AFF2EE
square
#CCAFF2 #F2AFB4 #D5F2AF #AFF2EE
split-complementary
#CCAFF2 #F2EEAF #B4F2AF
monochromatic
#8946E1 #AA7AE9 #CCAFF2 #EEE4FB #EEE5FB

Accessibility & contrast

On white

1.91
#CCAFF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.98
#CCAFF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAFF2
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAFF2#FFFFFF#000000##000000
##CCAFF21.001.9110.9810.98
#FFFFFF1.911.0021.0021.00
#00000010.9821.001.001.00
##00000010.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A2BBF5
Deuteranopia (green-blind)
#A7BBF0
Tritanopia (blue-blind)
#C6B9C7
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #ccaff2;
/* rgb */ color: rgb(204, 175, 242);
/* oklch */ color: oklch(80.2% 0.098 304.1);
Tailwind
colors: {
  custom: {
    50: '#dcc7f6',
    500: '#ccaff2',
    950: '#000000',
  },
}
SCSS
$custom: #ccaff2;
$custom-light: #dcc7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ccaff2",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 242
  },
  "hsl": {
    "h": 265.97,
    "s": 72.043,
    "l": 81.765
  },
  "oklch": {
    "l": 0.80223,
    "c": 0.09768,
    "h": 304.1
  },
  "luminance": 0.49908
}

Semantic roles & 50–950 ramp

primary
#CCAFF2
secondary
#E7F2D9
accent
#D41180
background
#FDFCFF
surface
#FBF8FE
border
#D4D1D6
text
#151317
muted
#838285

Preview Lab

Preview with #CCAFF2

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

Preview Lab → · Contrast checker → · Palette generator →

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