#CC38AF#CC38AF

#CC38AF is a mid, highly saturated pink. Relative luminance 0.188; OKLCH L 60.2% C 0.220 H 337.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#CC38AF
RGBrgb(204, 56, 175)
HSLhsl(312, 59%, 51%)
HSVhsv(312, 73%, 80%)
CMYKcmyk(0%, 72.5%, 14.2%, 20%)
CIE-LABlab(50.41, 68.88, -31.52)
CIE-LCHlch(50.41, 75.75, 335.41°)
OKLaboklab(60.16% 0.2029 -0.0857)
OKLCHoklch(60.16% 0.22 337.1)
XYZxyz(34.0545, 18.7640, 42.3774)
Luminance0.1876 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38AF #38CC55
analogous
#9F38CC #CC38AF #CC3865
triadic
#CC38AF #AFCC38 #38AFCC
tetradic
#CC38AF #CC9F38 #38CC55 #3865CC
square
#CC38AF #CC9F38 #38CC55 #3865CC
split-complementary
#CC38AF #65CC38 #38CC9F
monochromatic
#6E1C5E #9E2987 #CC38AF #D869C3 #E599D6

Accessibility & contrast

On white

4.42
#CC38AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#CC38AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38AF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38AF#FFFFFF#000000##000000
##CC38AF1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6AB2
Deuteranopia (green-blind)
#6F80AC
Tritanopia (blue-blind)
#D7416F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cc38af;
/* rgb */ color: rgb(204, 56, 175);
/* oklch */ color: oklch(60.2% 0.220 337.1);
Tailwind
colors: {
  custom: {
    50: '#e07cc7',
    500: '#cc38af',
    950: '#000000',
  },
}
SCSS
$custom: #cc38af;
$custom-light: #e07cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38af",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 311.757,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60164,
    "c": 0.22027,
    "h": 337.1
  },
  "luminance": 0.18761
}

Semantic roles & 50–950 ramp

primary
#CC38AF
secondary
#8FD19C
accent
#E26445
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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