#CC38C7#CC38C7

#CC38C7 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.4% C 0.237 H 329.5°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CC38C7
RGBrgb(204, 56, 199)
HSLhsl(302, 59%, 51%)
HSVhsv(302, 73%, 80%)
CMYKcmyk(0%, 72.5%, 2.5%, 20%)
CIE-LABlab(51.60, 72.46, -43.60)
CIE-LCHlch(51.60, 84.57, 328.96°)
OKLaboklab(61.41% 0.2044 -0.1205)
OKLCHoklch(61.41% 0.237 329.5)
XYZxyz(36.6246, 19.7920, 55.9130)
Luminance0.1979 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38C7 #38CC3D
analogous
#8738CC #CC38C7 #CC387D
triadic
#CC38C7 #C7CC38 #38C7CC
tetradic
#CC38C7 #CC8738 #38CC3D #387DCC
square
#CC38C7 #CC8738 #38CC3D #387DCC
split-complementary
#CC38C7 #7DCC38 #38CC87
monochromatic
#6E1C6B #9E299A #CC38C7 #D869D5 #E599E2

Accessibility & contrast

On white

4.24
#CC38C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#CC38C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38C7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38C7#FFFFFF#000000##000000
##CC38C71.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#236ECB
Deuteranopia (green-blind)
#6382C3
Tritanopia (blue-blind)
#D34D7D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc38c7;
/* rgb */ color: rgb(204, 56, 199);
/* oklch */ color: oklch(61.4% 0.237 329.5);
Tailwind
colors: {
  custom: {
    50: '#e07dd8',
    500: '#cc38c7',
    950: '#000000',
  },
}
SCSS
$custom: #cc38c7;
$custom-light: #e07dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38c7",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 302.027,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61407,
    "c": 0.23724,
    "h": 329.5
  },
  "luminance": 0.19789
}

Semantic roles & 50–950 ramp

primary
#CC38C7
secondary
#8FD191
accent
#E24B45
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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