#CC71E7#CC71E7

#CC71E7 is a light, vivid purple. Relative luminance 0.304; OKLCH L 69.5% C 0.188 H 318.1°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#CC71E7
RGBrgb(204, 113, 231)
HSLhsl(286, 71%, 67%)
HSVhsv(286, 51%, 91%)
CMYKcmyk(11.7%, 51.1%, 0%, 9.4%)
CIE-LABlab(62.01, 54.09, -45.27)
CIE-LCHlch(62.01, 70.53, 320.08°)
OKLaboklab(69.51% 0.1399 -0.1257)
OKLCHoklch(69.51% 0.188 318.1)
XYZxyz(45.2288, 30.4188, 79.0747)
Luminance0.3042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC71E7 #8CE771
analogous
#9171E7 #CC71E7 #E771C7
triadic
#CC71E7 #E7CC71 #71E7CC
tetradic
#CC71E7 #E79171 #8CE771 #71C7E7
square
#CC71E7 #E79171 #8CE771 #71C7E7
split-complementary
#CC71E7 #C7E771 #71E791
monochromatic
#9A20BE #B93DDE #CC71E7 #DFA5F0 #F2DAF9

Accessibility & contrast

On white

2.96
#CC71E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#CC71E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC71E7
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC71E7#FFFFFF#000000##000000
##CC71E71.002.967.087.08
#FFFFFF2.961.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A90EB
Deuteranopia (green-blind)
#7699E4
Tritanopia (blue-blind)
#CC82A2
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #cc71e7;
/* rgb */ color: rgb(204, 113, 231);
/* oklch */ color: oklch(69.5% 0.188 318.1);
Tailwind
colors: {
  custom: {
    50: '#de9def',
    500: '#cc71e7',
    950: '#000000',
  },
}
SCSS
$custom: #cc71e7;
$custom-light: #de9def;
$custom-dark: #000000;
JSON
{
  "hex": "#cc71e7",
  "rgb": {
    "r": 204,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 286.271,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.6951,
    "c": 0.18808,
    "h": 318.1
  },
  "luminance": 0.30417
}

Semantic roles & 50–950 ramp

primary
#CC71E7
secondary
#D0ECC7
accent
#D3123E
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #CC71E7

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

Preview Lab → · Contrast checker → · Palette generator →

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