#CC74EF#CC74EF

#CC74EF is a light, vivid purple. Relative luminance 0.316; OKLCH L 70.3% C 0.192 H 315.5°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#CC74EF
RGBrgb(204, 116, 239)
HSLhsl(283, 79%, 70%)
HSVhsv(283, 51%, 94%)
CMYKcmyk(14.6%, 51.5%, 0%, 6.3%)
CIE-LABlab(62.98, 54.19, -48.18)
CIE-LCHlch(62.98, 72.51, 318.36°)
OKLaboklab(70.35% 0.1367 -0.1342)
OKLCHoklch(70.35% 0.192 315.5)
XYZxyz(46.7248, 31.5616, 85.2753)
Luminance0.3156 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC74EF #97EF74
analogous
#8F74EF #CC74EF #EF74D4
triadic
#CC74EF #EFCC74 #74EFCC
tetradic
#CC74EF #EF8F74 #97EF74 #74D4EF
square
#CC74EF #EF8F74 #97EF74 #74D4EF
split-complementary
#CC74EF #D4EF74 #74EF8F
monochromatic
#9C18D1 #B83DE9 #CC74EF #E0ABF5 #F4E2FC

Accessibility & contrast

On white

2.87
#CC74EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#CC74EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC74EF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC74EF#FFFFFF#000000##000000
##CC74EF1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5993F3
Deuteranopia (green-blind)
#749BEC
Tritanopia (blue-blind)
#CA87A7
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #cc74ef;
/* rgb */ color: rgb(204, 116, 239);
/* oklch */ color: oklch(70.3% 0.192 315.5);
Tailwind
colors: {
  custom: {
    50: '#de9ff5',
    500: '#cc74ef',
    950: '#000000',
  },
}
SCSS
$custom: #cc74ef;
$custom-light: #de9ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc74ef",
  "rgb": {
    "r": 204,
    "g": 116,
    "b": 239
  },
  "hsl": {
    "h": 282.927,
    "s": 79.355,
    "l": 69.608
  },
  "oklch": {
    "l": 0.7035,
    "c": 0.19159,
    "h": 315.5
  },
  "luminance": 0.3156
}

Semantic roles & 50–950 ramp

primary
#CC74EF
secondary
#D8F1CE
accent
#DC0A46
background
#FDFAFF
surface
#FBF3FE
border
#D4CDD6
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC74EF

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

Preview Lab → · Contrast checker → · Palette generator →

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