#CC9BE7#CC9BE7

#CC9BE7 is a light, moderate violet. Relative luminance 0.420; OKLCH L 76.2% C 0.118 H 313.1°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#CC9BE7
RGBrgb(204, 155, 231)
HSLhsl(279, 61%, 76%)
HSVhsv(279, 33%, 91%)
CMYKcmyk(11.7%, 32.9%, 0%, 9.4%)
CIE-LABlab(70.91, 31.83, -31.39)
CIE-LCHlch(70.91, 44.70, 315.39°)
OKLaboklab(76.18% 0.0807 -0.0861)
OKLCHoklch(76.18% 0.118 313.1)
XYZxyz(51.0446, 42.0504, 81.0133)
Luminance0.4205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC9BE7 #B6E79B
analogous
#A69BE7 #CC9BE7 #E79BDC
triadic
#CC9BE7 #E7CC9B #9BE7CC
tetradic
#CC9BE7 #E7A69B #B6E79B #9BDCE7
square
#CC9BE7 #E7A69B #B6E79B #9BDCE7
split-complementary
#CC9BE7 #DCE79B #9BE7A6
monochromatic
#9A38CF #B36ADB #CC9BE7 #E5CCF3 #F2E6F9

Accessibility & contrast

On white

2.23
#CC9BE7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#CC9BE7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC9BE7
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC9BE7#FFFFFF#000000##000000
##CC9BE71.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FABEA
Deuteranopia (green-blind)
#9AAFE5
Tritanopia (blue-blind)
#CAA5B7
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cc9be7;
/* rgb */ color: rgb(204, 155, 231);
/* oklch */ color: oklch(76.2% 0.118 313.1);
Tailwind
colors: {
  custom: {
    50: '#dcb9ef',
    500: '#cc9be7',
    950: '#000000',
  },
}
SCSS
$custom: #cc9be7;
$custom-light: #dcb9ef;
$custom-dark: #000000;
JSON
{
  "hex": "#cc9be7",
  "rgb": {
    "r": 204,
    "g": 155,
    "b": 231
  },
  "hsl": {
    "h": 278.684,
    "s": 61.29,
    "l": 75.686
  },
  "oklch": {
    "l": 0.76181,
    "c": 0.11799,
    "h": 313.1
  },
  "luminance": 0.4205
}

Semantic roles & 50–950 ramp

primary
#CC9BE7
secondary
#E2F0DB
accent
#C91D5A
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC9BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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