#CC7DF7#CC7DF7

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

Color values

HEX#CC7DF7
RGBrgb(204, 125, 247)
HSLhsl(279, 88%, 73%)
HSVhsv(279, 49%, 97%)
CMYKcmyk(17.4%, 49.4%, 0%, 3.1%)
CIE-LABlab(65.14, 51.24, -49.19)
CIE-LCHlch(65.14, 71.03, 316.17°)
OKLaboklab(72.08% 0.1256 -0.1372)
OKLCHoklch(72.08% 0.186 312.5)
XYZxyz(49.0211, 34.2211, 92.0006)
Luminance0.3422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7DF7 #A8F77D
analogous
#8F7DF7 #CC7DF7 #F77DE5
triadic
#CC7DF7 #F7CC7D #7DF7CC
tetradic
#CC7DF7 #F78F7D #A8F77D #7DE5F7
square
#CC7DF7 #F78F7D #A8F77D #7DE5F7
split-complementary
#CC7DF7 #E5F77D #7DF78F
monochromatic
#9D0EEB #B543F3 #CC7DF7 #E3B7FB #F4E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC7DF7#FFFFFF#000000##000000
##CC7DF71.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)
#609AFB
Deuteranopia (green-blind)
#78A0F4
Tritanopia (blue-blind)
#C890AF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7df7;
/* rgb */ color: rgb(204, 125, 247);
/* oklch */ color: oklch(72.1% 0.186 312.5);
Tailwind
colors: {
  custom: {
    50: '#dea5fa',
    500: '#cc7df7',
    950: '#000000',
  },
}
SCSS
$custom: #cc7df7;
$custom-light: #dea5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7df7",
  "rgb": {
    "r": 204,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 278.852,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72075,
    "c": 0.18598,
    "h": 312.5
  },
  "luminance": 0.3422
}

Semantic roles & 50–950 ramp

primary
#CC7DF7
secondary
#E1F5D6
accent
#E50051
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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