#CC7CFB#CC7CFB

#CC7CFB is a light, vivid violet. Relative luminance 0.342; OKLCH L 72.1% C 0.192 H 311.6°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#CC7CFB
RGBrgb(204, 124, 251)
HSLhsl(278, 94%, 74%)
HSVhsv(278, 51%, 98%)
CMYKcmyk(18.7%, 50.6%, 0%, 1.6%)
CIE-LABlab(65.14, 52.61, -51.38)
CIE-LCHlch(65.14, 73.54, 315.67°)
OKLaboklab(72.14% 0.1273 -0.1436)
OKLCHoklch(72.14% 0.192 311.6)
XYZxyz(49.5190, 34.2187, 95.2444)
Luminance0.3422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7CFB #ABFB7C
analogous
#8C7CFB #CC7CFB #FB7CEB
triadic
#CC7CFB #FBCC7C #7CFBCC
tetradic
#CC7CFB #FB8C7C #ABFB7C #7CEBFB
square
#CC7CFB #FB8C7C #ABFB7C #7CEBFB
split-complementary
#CC7CFB #EBFB7C #7CFB8C
monochromatic
#9D07F5 #B541F9 #CC7CFB #E3B7FD #F3E1FE

Accessibility & contrast

On white

2.68
#CC7CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#CC7CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7CFB
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7CFB#FFFFFF#000000##000000
##CC7CFB1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9AFF
Deuteranopia (green-blind)
#74A0F8
Tritanopia (blue-blind)
#C791B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7cfb;
/* rgb */ color: rgb(204, 124, 251);
/* oklch */ color: oklch(72.1% 0.192 311.6);
Tailwind
colors: {
  custom: {
    50: '#dea4fd',
    500: '#cc7cfb',
    950: '#000000',
  },
}
SCSS
$custom: #cc7cfb;
$custom-light: #dea4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7cfb",
  "rgb": {
    "r": 204,
    "g": 124,
    "b": 251
  },
  "hsl": {
    "h": 277.795,
    "s": 94.074,
    "l": 73.529
  },
  "oklch": {
    "l": 0.72138,
    "c": 0.19189,
    "h": 311.6
  },
  "luminance": 0.34218
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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