#CCABFA#CCABFA

#CCABFA is a light, moderate violet. Relative luminance 0.489; OKLCH L 79.8% C 0.115 H 303.1°. Best body text is #000000 at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#CCABFA
RGBrgb(204, 171, 250)
HSLhsl(265, 89%, 83%)
HSVhsv(265, 32%, 98%)
CMYKcmyk(18.4%, 31.6%, 0%, 2%)
CIE-LABlab(75.37, 27.12, -34.82)
CIE-LCHlch(75.37, 44.14, 307.91°)
OKLaboklab(79.83% 0.0625 -0.096)
OKLCHoklch(79.83% 0.115 303.1)
XYZxyz(56.7165, 48.8654, 96.8680)
Luminance0.4886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCABFA #D9FAAB
analogous
#ABB2FA #CCABFA #F3ABFA
triadic
#CCABFA #FACCAB #ABFACC
tetradic
#CCABFA #FAABB2 #D9FAAB #ABFAF3
square
#CCABFA #FAABB2 #D9FAAB #ABFAF3
split-complementary
#CCABFA #FAF3AB #B2FAAB
monochromatic
#8637F3 #A971F7 #CCABFA #EDE2FD #EDE2FD

Accessibility & contrast

On white

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

On black

10.77
#CCABFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCABFA
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCABFA#FFFFFF#000000##000000
##CCABFA1.001.9510.7710.77
#FFFFFF1.951.0021.0021.00
#00000010.7721.001.001.00
##00000010.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AB9FD
Deuteranopia (green-blind)
#A1BAF8
Tritanopia (blue-blind)
#C5B7C8
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #ccabfa;
/* rgb */ color: rgb(204, 171, 250);
/* oklch */ color: oklch(79.8% 0.115 303.1);
Tailwind
colors: {
  custom: {
    50: '#dcc4fc',
    500: '#ccabfa',
    950: '#000000',
  },
}
SCSS
$custom: #ccabfa;
$custom-light: #dcc4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ccabfa",
  "rgb": {
    "r": 204,
    "g": 171,
    "b": 250
  },
  "hsl": {
    "h": 265.063,
    "s": 88.764,
    "l": 82.549
  },
  "oklch": {
    "l": 0.79829,
    "c": 0.11455,
    "h": 303.1
  },
  "luminance": 0.48865
}

Semantic roles & 50–950 ramp

primary
#CCABFA
secondary
#E8F5D6
accent
#E50086
background
#FDFCFF
surface
#FBF8FF
border
#D4D1D7
text
#151217
muted
#838185

Preview Lab

Preview with #CCABFA

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

Preview Lab → · Contrast checker → · Palette generator →

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