#CCA7EF#CCA7EF

#CCA7EF is a light, moderate violet. Relative luminance 0.467; OKLCH L 78.6% C 0.107 H 307.5°. Best body text is #000000 at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#CCA7EF
RGBrgb(204, 167, 239)
HSLhsl(271, 69%, 80%)
HSVhsv(271, 30%, 94%)
CMYKcmyk(14.6%, 30.1%, 0%, 6.3%)
CIE-LABlab(74.00, 26.94, -30.98)
CIE-LCHlch(74.00, 41.05, 311.01°)
OKLaboklab(78.65% 0.0654 -0.085)
OKLCHoklch(78.65% 0.107 307.5)
XYZxyz(54.2976, 46.7072, 87.7995)
Luminance0.4671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA7EF #CAEFA7
analogous
#A8A7EF #CCA7EF #EFA7EE
triadic
#CCA7EF #EFCCA7 #A7EFCC
tetradic
#CCA7EF #EFA8A7 #CAEFA7 #A7EEEF
square
#CCA7EF #EFA8A7 #CAEFA7 #A7EEEF
split-complementary
#CCA7EF #EEEFA7 #A7EFA8
monochromatic
#903FDC #AE73E6 #CCA7EF #EADBF8 #F0E5FA

Accessibility & contrast

On white

2.03
#CCA7EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.34
#CCA7EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA7EF
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA7EF#FFFFFF#000000##000000
##CCA7EF1.002.0310.3410.34
#FFFFFF2.031.0021.0021.00
#00000010.3421.001.001.00
##00000010.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AB4F2
Deuteranopia (green-blind)
#A1B6ED
Tritanopia (blue-blind)
#C7B1C1
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cca7ef;
/* rgb */ color: rgb(204, 167, 239);
/* oklch */ color: oklch(78.6% 0.107 307.5);
Tailwind
colors: {
  custom: {
    50: '#dcc1f4',
    500: '#cca7ef',
    950: '#000000',
  },
}
SCSS
$custom: #cca7ef;
$custom-light: #dcc1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cca7ef",
  "rgb": {
    "r": 204,
    "g": 167,
    "b": 239
  },
  "hsl": {
    "h": 270.833,
    "s": 69.231,
    "l": 79.608
  },
  "oklch": {
    "l": 0.78645,
    "c": 0.10725,
    "h": 307.5
  },
  "luminance": 0.46707
}

Semantic roles & 50–950 ramp

primary
#CCA7EF
secondary
#E5F2D9
accent
#D11470
background
#FDFBFE
surface
#FBF7FD
border
#D4D0D5
text
#151217
muted
#838185

Preview Lab

Preview with #CCA7EF

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

Preview Lab → · Contrast checker → · Palette generator →

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