#CC7BFB#CC7BFB

#CC7BFB is a light, vivid violet. Relative luminance 0.340; OKLCH L 72.0% C 0.193 H 311.7°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#CC7BFB
RGBrgb(204, 123, 251)
HSLhsl(278, 94%, 73%)
HSVhsv(278, 51%, 98%)
CMYKcmyk(18.7%, 51%, 0%, 1.6%)
CIE-LABlab(64.94, 53.12, -51.70)
CIE-LCHlch(64.94, 74.12, 315.78°)
OKLaboklab(71.99% 0.1286 -0.1445)
OKLCHoklch(71.99% 0.193 311.7)
XYZxyz(49.3943, 33.9694, 95.2028)
Luminance0.3397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7BFB #AAFB7B
analogous
#8C7BFB #CC7BFB #FB7BEA
triadic
#CC7BFB #FBCC7B #7BFBCC
tetradic
#CC7BFB #FB8C7B #AAFB7B #7BEAFB
square
#CC7BFB #FB8C7B #AAFB7B #7BEAFB
split-complementary
#CC7BFB #EAFB7B #7BFB8C
monochromatic
#9D07F4 #B540F9 #CC7BFB #E3B6FD #F4E1FE

Accessibility & contrast

On white

2.69
#CC7BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#CC7BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7BFB
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7BFB#FFFFFF#000000##000000
##CC7BFB1.002.697.797.79
#FFFFFF2.691.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A99FF
Deuteranopia (green-blind)
#739FF8
Tritanopia (blue-blind)
#C790B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7bfb;
/* rgb */ color: rgb(204, 123, 251);
/* oklch */ color: oklch(72.0% 0.193 311.7);
Tailwind
colors: {
  custom: {
    50: '#dea4fd',
    500: '#cc7bfb',
    950: '#000000',
  },
}
SCSS
$custom: #cc7bfb;
$custom-light: #dea4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7bfb",
  "rgb": {
    "r": 204,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 277.969,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.71991,
    "c": 0.19343,
    "h": 311.7
  },
  "luminance": 0.33968
}

Semantic roles & 50–950 ramp

primary
#CC7BFB
secondary
#E1F6D5
accent
#E60054
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CC7BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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