#CCABFB#CCABFB

#CCABFB is a light, moderate violet. Relative luminance 0.489; OKLCH L 79.9% C 0.116 H 302.8°. Best body text is #000000 at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#CCABFB
RGBrgb(204, 171, 251)
HSLhsl(265, 91%, 83%)
HSVhsv(265, 32%, 98%)
CMYKcmyk(18.7%, 31.9%, 0%, 1.6%)
CIE-LABlab(75.41, 27.34, -35.30)
CIE-LCHlch(75.41, 44.65, 307.76°)
OKLaboklab(79.87% 0.0627 -0.0974)
OKLCHoklch(79.87% 0.116 302.8)
XYZxyz(56.8737, 48.9283, 97.6959)
Luminance0.4893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCABFB #DAFBAB
analogous
#ABB2FB #CCABFB #F4ABFB
triadic
#CCABFB #FBCCAB #ABFBCC
tetradic
#CCABFB #FBABB2 #DAFBAB #ABFBF4
square
#CCABFB #FBABB2 #DAFBAB #ABFBF4
split-complementary
#CCABFB #FBF4AB #B2FBAB
monochromatic
#8536F5 #A971F8 #CCABFB #EDE2FE #EDE2FE

Accessibility & contrast

On white

1.95
#CCABFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.79
#CCABFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCABFB
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCABFB#FFFFFF#000000##000000
##CCABFB1.001.9510.7910.79
#FFFFFF1.951.0021.0021.00
#00000010.7921.001.001.00
##00000010.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccabfb;
/* rgb */ color: rgb(204, 171, 251);
/* oklch */ color: oklch(79.9% 0.116 302.8);
Tailwind
colors: {
  custom: {
    50: '#dcc4fd',
    500: '#ccabfb',
    950: '#000000',
  },
}
SCSS
$custom: #ccabfb;
$custom-light: #dcc4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ccabfb",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 251
  },
  "hsl": {
    "h": 264.75,
    "s": 90.909,
    "l": 82.745
  },
  "oklch": {
    "l": 0.79872,
    "c": 0.11583,
    "h": 302.8
  },
  "luminance": 0.48928
}

Semantic roles & 50–950 ramp

primary
#CCABFB
secondary
#E8F6D5
accent
#E60087
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151217
muted
#838185

Preview Lab

Preview with #CCABFB

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

Preview Lab → · Contrast checker → · Palette generator →

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