#CCABFC#CCABFC

#CCABFC is a light, moderate violet. Relative luminance 0.490; OKLCH L 79.9% C 0.117 H 302.5°. Best body text is #000000 at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#CCABFC
RGBrgb(204, 171, 252)
HSLhsl(264, 93%, 83%)
HSVhsv(264, 32%, 99%)
CMYKcmyk(19%, 32.1%, 0%, 1.2%)
CIE-LABlab(75.45, 27.56, -35.78)
CIE-LCHlch(75.45, 45.17, 307.61°)
OKLaboklab(79.92% 0.063 -0.0987)
OKLCHoklch(79.92% 0.117 302.5)
XYZxyz(57.0318, 48.9915, 98.5283)
Luminance0.4899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCABFC #DBFCAB
analogous
#ABB2FC #CCABFC #F4ABFC
triadic
#CCABFC #FCCCAB #ABFCCC
tetradic
#CCABFC #FCABB2 #DBFCAB #ABFCF4
square
#CCABFC #FCABB2 #DBFCAB #ABFCF4
split-complementary
#CCABFC #FCF4AB #B2FCAB
monochromatic
#8435F8 #A870FA #CCABFC #EDE1FE #EDE1FE

Accessibility & contrast

On white

1.94
#CCABFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.80
#CCABFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCABFC
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCABFC#FFFFFF#000000##000000
##CCABFC1.001.9410.8010.80
#FFFFFF1.941.0021.0021.00
#00000010.8021.001.001.00
##00000010.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AB9FF
Deuteranopia (green-blind)
#A0BAFA
Tritanopia (blue-blind)
#C4B7C8
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #ccabfc;
/* rgb */ color: rgb(204, 171, 252);
/* oklch */ color: oklch(79.9% 0.117 302.5);
Tailwind
colors: {
  custom: {
    50: '#dcc4fd',
    500: '#ccabfc',
    950: '#000000',
  },
}
SCSS
$custom: #ccabfc;
$custom-light: #dcc4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ccabfc",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 252
  },
  "hsl": {
    "h": 264.444,
    "s": 93.103,
    "l": 82.941
  },
  "oklch": {
    "l": 0.79915,
    "c": 0.11711,
    "h": 302.5
  },
  "luminance": 0.48991
}

Semantic roles & 50–950 ramp

primary
#CCABFC
secondary
#E9F6D5
accent
#E60088
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151217
muted
#838185

Preview Lab

Preview with #CCABFC

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

Preview Lab → · Contrast checker → · Palette generator →

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