#CC38C3#CC38C3

#CC38C3 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.2% C 0.234 H 330.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CC38C3
RGBrgb(204, 56, 195)
HSLhsl(304, 59%, 51%)
HSVhsv(304, 73%, 80%)
CMYKcmyk(0%, 72.5%, 4.4%, 20%)
CIE-LABlab(51.39, 71.84, -41.63)
CIE-LCHlch(51.39, 83.03, 329.91°)
OKLaboklab(61.19% 0.2043 -0.1148)
OKLCHoklch(61.19% 0.234 330.7)
XYZxyz(36.1662, 19.6087, 53.4992)
Luminance0.1961 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38C3 #38CC41
analogous
#8B38CC #CC38C3 #CC3879
triadic
#CC38C3 #C3CC38 #38C3CC
tetradic
#CC38C3 #CC8B38 #38CC41 #3879CC
square
#CC38C3 #CC8B38 #38CC41 #3879CC
split-complementary
#CC38C3 #79CC38 #38CC8B
monochromatic
#6E1C69 #9E2997 #CC38C3 #D869D2 #E599E0

Accessibility & contrast

On white

4.27
#CC38C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#CC38C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38C3
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38C3#FFFFFF#000000##000000
##CC38C31.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#296DC7
Deuteranopia (green-blind)
#6582BF
Tritanopia (blue-blind)
#D44B7A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc38c3;
/* rgb */ color: rgb(204, 56, 195);
/* oklch */ color: oklch(61.2% 0.234 330.7);
Tailwind
colors: {
  custom: {
    50: '#df7dd5',
    500: '#cc38c3',
    950: '#000000',
  },
}
SCSS
$custom: #cc38c3;
$custom-light: #df7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38c3",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 303.649,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61189,
    "c": 0.23431,
    "h": 330.7
  },
  "luminance": 0.19606
}

Semantic roles & 50–950 ramp

primary
#CC38C3
secondary
#8FD193
accent
#E24F45
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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