#CC7BFC#CC7BFC

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

Color values

HEX#CC7BFC
RGBrgb(204, 123, 252)
HSLhsl(278, 96%, 74%)
HSVhsv(278, 51%, 99%)
CMYKcmyk(19%, 51.2%, 0%, 1.2%)
CIE-LABlab(64.99, 53.33, -52.17)
CIE-LCHlch(64.99, 74.60, 315.63°)
OKLaboklab(72.05% 0.1287 -0.1458)
OKLCHoklch(72.05% 0.195 311.4)
XYZxyz(49.5523, 34.0326, 96.0352)
Luminance0.3403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7BFC #ABFC7B
analogous
#8B7BFC #CC7BFC #FC7BEC
triadic
#CC7BFC #FCCC7B #7BFCCC
tetradic
#CC7BFC #FC8B7B #ABFC7B #7BECFC
square
#CC7BFC #FC8B7B #ABFC7B #7BECFC
split-complementary
#CC7BFC #ECFC7B #7BFC8B
monochromatic
#9D06F7 #B53FFB #CC7BFC #E3B7FD #F3E1FE

Accessibility & contrast

On white

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

On black

7.81
#CC7BFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7BFC
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7BFC#FFFFFF#000000##000000
##CC7BFC1.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#599AFF
Deuteranopia (green-blind)
#739FF9
Tritanopia (blue-blind)
#C790B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7bfc;
/* rgb */ color: rgb(204, 123, 252);
/* oklch */ color: oklch(72.0% 0.195 311.4);
Tailwind
colors: {
  custom: {
    50: '#dea4fe',
    500: '#cc7bfc',
    950: '#000000',
  },
}
SCSS
$custom: #cc7bfc;
$custom-light: #dea4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7bfc",
  "rgb": {
    "r": 204,
    "g": 123,
    "b": 252
  },
  "hsl": {
    "h": 277.674,
    "s": 95.556,
    "l": 73.529
  },
  "oklch": {
    "l": 0.72045,
    "c": 0.19452,
    "h": 311.4
  },
  "luminance": 0.34032
}

Semantic roles & 50–950 ramp

primary
#CC7BFC
secondary
#E1F7D4
accent
#E60055
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CC7BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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