#CC4FE2#CC4FE2

#CC4FE2 is a light, highly saturated purple. Relative luminance 0.239; OKLCH L 65.0% C 0.232 H 321.3°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#CC4FE2
RGBrgb(204, 79, 226)
HSLhsl(291, 72%, 60%)
HSVhsv(291, 65%, 89%)
CMYKcmyk(9.7%, 65%, 0%, 11.4%)
CIE-LABlab(56.01, 68.70, -51.98)
CIE-LCHlch(56.01, 86.15, 322.89°)
OKLaboklab(65.05% 0.1813 -0.145)
OKLCHoklch(65.05% 0.232 321.3)
XYZxyz(41.4238, 23.9224, 74.3723)
Luminance0.2392 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC4FE2 #65E24F
analogous
#824FE2 #CC4FE2 #E24FAF
triadic
#CC4FE2 #E2CC4F #4FE2CC
tetradic
#CC4FE2 #E2824F #65E24F #4FAFE2
square
#CC4FE2 #E2824F #65E24F #4FAFE2
split-complementary
#CC4FE2 #AFE24F #4FE282
monochromatic
#891A9D #B722D1 #CC4FE2 #DB84EB #EAB8F3

Accessibility & contrast

On white

3.63
#CC4FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#CC4FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC4FE2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC4FE2#FFFFFF#000000##000000
##CC4FE21.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#257DE6
Deuteranopia (green-blind)
#608BDE
Tritanopia (blue-blind)
#CE6892
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cc4fe2;
/* rgb */ color: rgb(204, 79, 226);
/* oklch */ color: oklch(65.0% 0.232 321.3);
Tailwind
colors: {
  custom: {
    50: '#df89ec',
    500: '#cc4fe2',
    950: '#000000',
  },
}
SCSS
$custom: #cc4fe2;
$custom-light: #df89ec;
$custom-dark: #000000;
JSON
{
  "hex": "#cc4fe2",
  "rgb": {
    "r": 204,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 291.02,
    "s": 71.707,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65046,
    "c": 0.23219,
    "h": 321.3
  },
  "luminance": 0.2392
}

Semantic roles & 50–950 ramp

primary
#CC4FE2
secondary
#B2E3AA
accent
#EE3954
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CC4FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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