#CCA7DF#CCA7DF

#CCA7DF is a light, moderate violet. Relative luminance 0.458; OKLCH L 78.0% C 0.088 H 314.0°. Best body text is #000000 at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#CCA7DF
RGBrgb(204, 167, 223)
HSLhsl(280, 47%, 76%)
HSVhsv(280, 25%, 87%)
CMYKcmyk(8.5%, 25.1%, 0%, 12.5%)
CIE-LABlab(73.42, 23.62, -23.16)
CIE-LCHlch(73.42, 33.08, 315.56°)
OKLaboklab(78% 0.0609 -0.063)
OKLCHoklch(78% 0.088 314)
XYZxyz(52.0377, 45.8032, 75.8973)
Luminance0.4580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA7DF #BADFA7
analogous
#B0A7DF #CCA7DF #DFA7D6
triadic
#CCA7DF #DFCCA7 #A7DFCC
tetradic
#CCA7DF #DFB0A7 #BADFA7 #A7D6DF
square
#CCA7DF #DFB0A7 #BADFA7 #A7D6DF
split-complementary
#CCA7DF #D6DFA7 #A7DFB0
monochromatic
#984DBE #B27ACF #CCA7DF #E6D4EF #F2E9F7

Accessibility & contrast

On white

2.07
#CCA7DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.16
#CCA7DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA7DF
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA7DF#FFFFFF#000000##000000
##CCA7DF1.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9FB2E1
Deuteranopia (green-blind)
#A7B5DD
Tritanopia (blue-blind)
#CBAEBB
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cca7df;
/* rgb */ color: rgb(204, 167, 223);
/* oklch */ color: oklch(78.0% 0.088 314.0);
Tailwind
colors: {
  custom: {
    50: '#dcc1e9',
    500: '#cca7df',
    950: '#000000',
  },
}
SCSS
$custom: #cca7df;
$custom-light: #dcc1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#cca7df",
  "rgb": {
    "r": 204,
    "g": 167,
    "b": 223
  },
  "hsl": {
    "h": 279.643,
    "s": 46.667,
    "l": 76.471
  },
  "oklch": {
    "l": 0.78004,
    "c": 0.0876,
    "h": 314
  },
  "luminance": 0.45803
}

Semantic roles & 50–950 ramp

primary
#CCA7DF
secondary
#E3EEDD
accent
#BA2C5C
background
#FDFBFE
surface
#FBF7FC
border
#D4D0D5
text
#151216
muted
#838184

Preview Lab

Preview with #CCA7DF

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

Preview Lab → · Contrast checker → · Palette generator →

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