#CC7EFA#CC7EFA

#CC7EFA is a light, vivid violet. Relative luminance 0.347; OKLCH L 72.4% C 0.188 H 311.6°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#CC7EFA
RGBrgb(204, 126, 250)
HSLhsl(278, 93%, 74%)
HSVhsv(278, 50%, 98%)
CMYKcmyk(18.4%, 49.6%, 0%, 2%)
CIE-LABlab(65.48, 51.36, -50.28)
CIE-LCHlch(65.48, 71.88, 315.61°)
OKLaboklab(72.38% 0.1246 -0.1404)
OKLCHoklch(72.38% 0.188 311.6)
XYZxyz(49.6149, 34.6622, 94.5008)
Luminance0.3466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EFA #ACFA7E
analogous
#8E7EFA #CC7EFA #FA7EEA
triadic
#CC7EFA #FACC7E #7EFACC
tetradic
#CC7EFA #FA8E7E #ACFA7E #7EEAFA
square
#CC7EFA #FA8E7E #ACFA7E #7EEAFA
split-complementary
#CC7EFA #EAFA7E #7EFA8E
monochromatic
#9D09F4 #B543F8 #CC7EFA #E3B9FC #F3E2FE

Accessibility & contrast

On white

2.65
#CC7EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#CC7EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EFA
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EFA#FFFFFF#000000##000000
##CC7EFA1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#609BFE
Deuteranopia (green-blind)
#77A1F7
Tritanopia (blue-blind)
#C792B1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cc7efa;
/* rgb */ color: rgb(204, 126, 250);
/* oklch */ color: oklch(72.4% 0.188 311.6);
Tailwind
colors: {
  custom: {
    50: '#dea5fc',
    500: '#cc7efa',
    950: '#000000',
  },
}
SCSS
$custom: #cc7efa;
$custom-light: #dea5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7efa",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 250
  },
  "hsl": {
    "h": 277.742,
    "s": 92.537,
    "l": 73.725
  },
  "oklch": {
    "l": 0.7238,
    "c": 0.18769,
    "h": 311.6
  },
  "luminance": 0.34661
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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