#CC7BF8#CC7BF8

#CC7BF8 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.8% C 0.190 H 312.4°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#CC7BF8
RGBrgb(204, 123, 248)
HSLhsl(279, 90%, 73%)
HSVhsv(279, 50%, 97%)
CMYKcmyk(17.7%, 50.4%, 0%, 2.7%)
CIE-LABlab(64.79, 52.49, -50.29)
CIE-LCHlch(64.79, 72.69, 316.23°)
OKLaboklab(71.83% 0.1284 -0.1403)
OKLCHoklch(71.83% 0.19 312.4)
XYZxyz(48.9251, 33.7817, 92.7320)
Luminance0.3378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7BF8 #A7F87B
analogous
#8D7BF8 #CC7BF8 #F87BE5
triadic
#CC7BF8 #F8CC7B #7BF8CC
tetradic
#CC7BF8 #F88D7B #A7F87B #7BE5F8
square
#CC7BF8 #F88D7B #A7F87B #7BE5F8
split-complementary
#CC7BF8 #E5F87B #7BF88D
monochromatic
#9D0DEC #B641F5 #CC7BF8 #E2B5FB #F4E2FD

Accessibility & contrast

On white

2.71
#CC7BF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#CC7BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7BF8
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7BF8#FFFFFF#000000##000000
##CC7BF81.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C99FC
Deuteranopia (green-blind)
#759FF5
Tritanopia (blue-blind)
#C88FAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7bf8;
/* rgb */ color: rgb(204, 123, 248);
/* oklch */ color: oklch(71.8% 0.190 312.4);
Tailwind
colors: {
  custom: {
    50: '#dea3fb',
    500: '#cc7bf8',
    950: '#000000',
  },
}
SCSS
$custom: #cc7bf8;
$custom-light: #dea3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7bf8",
  "rgb": {
    "r": 204,
    "g": 123,
    "b": 248
  },
  "hsl": {
    "h": 278.88,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71832,
    "c": 0.1902,
    "h": 312.4
  },
  "luminance": 0.33781
}

Semantic roles & 50–950 ramp

primary
#CC7BF8
secondary
#E1F6D5
accent
#E60051
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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