#CCAFFF#CCAFFF

#CCAFFF is a light, moderate violet. Relative luminance 0.507; OKLCH L 80.8% C 0.115 H 300.5°. Best body text is #000000 at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#CCAFFF
RGBrgb(204, 175, 255)
HSLhsl(262, 100%, 84%)
HSVhsv(262, 31%, 100%)
CMYKcmyk(20%, 31.4%, 0%, 0%)
CIE-LABlab(76.51, 26.04, -35.75)
CIE-LCHlch(76.51, 44.23, 306.06°)
OKLaboklab(80.77% 0.0582 -0.0987)
OKLCHoklch(80.77% 0.115 300.5)
XYZxyz(58.2779, 50.7172, 101.3075)
Luminance0.5072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCAFFF #E2FFAF
analogous
#AFBAFF #CCAFFF #F4AFFF
triadic
#CCAFFF #FFCCAF #AFFFCC
tetradic
#CCAFFF #FFAFBA #E2FFAF #AFFFF4
square
#CCAFFF #FFAFBA #E2FFAF #AFFFF4
split-complementary
#CCAFFF #FFF4AF #BAFFAF
monochromatic
#7E35FF #A572FF #CCAFFF #EBE0FF #EBE0FF

Accessibility & contrast

On white

1.88
#CCAFFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.14
#CCAFFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCAFFF
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCAFFF#FFFFFF#000000##000000
##CCAFFF1.001.8811.1411.14
#FFFFFF1.881.0021.0021.00
#00000011.1421.001.001.00
##00000011.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9DBCFF
Deuteranopia (green-blind)
#A2BCFD
Tritanopia (blue-blind)
#C3BBCC
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccafff;
/* rgb */ color: rgb(204, 175, 255);
/* oklch */ color: oklch(80.8% 0.115 300.5);
Tailwind
colors: {
  custom: {
    50: '#dcc7ff',
    500: '#ccafff',
    950: '#000000',
  },
}
SCSS
$custom: #ccafff;
$custom-light: #dcc7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ccafff",
  "rgb": {
    "r": 204,
    "g": 175,
    "b": 255
  },
  "hsl": {
    "h": 261.75,
    "s": 100,
    "l": 84.314
  },
  "oklch": {
    "l": 0.80766,
    "c": 0.11453,
    "h": 300.5
  },
  "luminance": 0.50717
}

Semantic roles & 50–950 ramp

primary
#CCAFFF
secondary
#BAE56D
accent
#E60092
background
#FEFDFF
surface
#FCF9FF
border
#D5D2D7
text
#151318
muted
#848286

Preview Lab

Preview with #CCAFFF

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

Preview Lab → · Contrast checker → · Palette generator →

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