#CC38B3#CC38B3

#CC38B3 is a mid, highly saturated pink. Relative luminance 0.189; OKLCH L 60.4% C 0.223 H 335.8°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#CC38B3
RGBrgb(204, 56, 179)
HSLhsl(310, 59%, 51%)
HSVhsv(310, 73%, 80%)
CMYKcmyk(0%, 72.5%, 12.3%, 20%)
CIE-LABlab(50.60, 69.45, -33.57)
CIE-LCHlch(50.60, 77.14, 334.20°)
OKLaboklab(60.36% 0.2033 -0.0916)
OKLCHoklch(60.36% 0.223 335.8)
XYZxyz(34.4532, 18.9235, 44.4772)
Luminance0.1892 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38B3 #38CC51
analogous
#9B38CC #CC38B3 #CC3869
triadic
#CC38B3 #B3CC38 #38B3CC
tetradic
#CC38B3 #CC9B38 #38CC51 #3869CC
square
#CC38B3 #CC9B38 #38CC51 #3869CC
split-complementary
#CC38B3 #69CC38 #38CC9B
monochromatic
#6E1C60 #9E298A #CC38B3 #D869C6 #E599D8

Accessibility & contrast

On white

4.39
#CC38B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#CC38B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38B3
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38B3#FFFFFF#000000##000000
##CC38B31.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#396AB6
Deuteranopia (green-blind)
#6D80AF
Tritanopia (blue-blind)
#D64372
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cc38b3;
/* rgb */ color: rgb(204, 56, 179);
/* oklch */ color: oklch(60.4% 0.223 335.8);
Tailwind
colors: {
  custom: {
    50: '#df7dca',
    500: '#cc38b3',
    950: '#000000',
  },
}
SCSS
$custom: #cc38b3;
$custom-light: #df7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38b3",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 310.135,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.6036,
    "c": 0.22299,
    "h": 335.8
  },
  "luminance": 0.1892
}

Semantic roles & 50–950 ramp

primary
#CC38B3
secondary
#8FD19A
accent
#E26045
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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