#CC7CFA#CC7CFA

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

Color values

HEX#CC7CFA
RGBrgb(204, 124, 250)
HSLhsl(278, 93%, 73%)
HSVhsv(278, 50%, 98%)
CMYKcmyk(18.4%, 50.4%, 0%, 2%)
CIE-LABlab(65.09, 52.39, -50.91)
CIE-LCHlch(65.09, 73.06, 315.82°)
OKLaboklab(72.08% 0.1272 -0.1422)
OKLCHoklch(72.08% 0.191 311.8)
XYZxyz(49.3618, 34.1558, 94.4164)
Luminance0.3416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7CFA #AAFA7C
analogous
#8D7CFA #CC7CFA #FA7CE9
triadic
#CC7CFA #FACC7C #7CFACC
tetradic
#CC7CFA #FA8D7C #AAFA7C #7CE9FA
square
#CC7CFA #FA8D7C #AAFA7C #7CE9FA
split-complementary
#CC7CFA #E9FA7C #7CFA8D
monochromatic
#9D09F2 #B541F8 #CC7CFA #E3B7FC #F4E2FE

Accessibility & contrast

On white

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

On black

7.83
#CC7CFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7CFA
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7CFA#FFFFFF#000000##000000
##CC7CFA1.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9AFE
Deuteranopia (green-blind)
#75A0F7
Tritanopia (blue-blind)
#C791B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7cfa;
/* rgb */ color: rgb(204, 124, 250);
/* oklch */ color: oklch(72.1% 0.191 311.8);
Tailwind
colors: {
  custom: {
    50: '#dea4fc',
    500: '#cc7cfa',
    950: '#000000',
  },
}
SCSS
$custom: #cc7cfa;
$custom-light: #dea4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7cfa",
  "rgb": {
    "r": 204,
    "g": 124,
    "b": 250
  },
  "hsl": {
    "h": 278.095,
    "s": 92.647,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72085,
    "c": 0.19081,
    "h": 311.8
  },
  "luminance": 0.34155
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7CFA

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

Preview Lab → · Contrast checker → · Palette generator →

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