#CCABFE#CCABFE

#CCABFE is a light, moderate violet. Relative luminance 0.491; OKLCH L 80.0% C 0.120 H 302.0°. Best body text is #000000 at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#CCABFE
RGBrgb(204, 171, 254)
HSLhsl(264, 98%, 83%)
HSVhsv(264, 33%, 100%)
CMYKcmyk(19.7%, 32.7%, 0%, 0.4%)
CIE-LABlab(75.53, 28.00, -36.74)
CIE-LCHlch(75.53, 46.19, 307.32°)
OKLaboklab(80% 0.0635 -0.1015)
OKLCHoklch(80% 0.12 302)
XYZxyz(57.3504, 49.1189, 100.2062)
Luminance0.4912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCABFE #DDFEAB
analogous
#ABB3FE #CCABFE #F5ABFE
triadic
#CCABFE #FECCAB #ABFECC
tetradic
#CCABFE #FEABB3 #DDFEAB #ABFEF5
square
#CCABFE #FEABB3 #DDFEAB #ABFEF5
split-complementary
#CCABFE #FEF5AB #B3FEAB
monochromatic
#8332FD #A76FFD #CCABFE #EDE1FF #EDE1FF

Accessibility & contrast

On white

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

On black

10.82
#CCABFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCABFE
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCABFE#FFFFFF#000000##000000
##CCABFE1.001.9410.8210.82
#FFFFFF1.941.0021.0021.00
#00000010.8221.001.001.00
##00000010.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#99B9FF
Deuteranopia (green-blind)
#9FBAFC
Tritanopia (blue-blind)
#C4B8C9
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #ccabfe;
/* rgb */ color: rgb(204, 171, 254);
/* oklch */ color: oklch(80.0% 0.120 302.0);
Tailwind
colors: {
  custom: {
    50: '#dcc4ff',
    500: '#ccabfe',
    950: '#000000',
  },
}
SCSS
$custom: #ccabfe;
$custom-light: #dcc4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ccabfe",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 254
  },
  "hsl": {
    "h": 263.855,
    "s": 97.647,
    "l": 83.333
  },
  "oklch": {
    "l": 0.80001,
    "c": 0.11969,
    "h": 302
  },
  "luminance": 0.49119
}

Semantic roles & 50–950 ramp

primary
#CCABFE
secondary
#E9F7D4
accent
#E6008A
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151218
muted
#838186

Preview Lab

Preview with #CCABFE

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

Preview Lab → · Contrast checker → · Palette generator →

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