#CC38B6#CC38B6

#CC38B6 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.5% C 0.225 H 334.8°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#CC38B6
RGBrgb(204, 56, 182)
HSLhsl(309, 59%, 51%)
HSVhsv(309, 73%, 80%)
CMYKcmyk(0%, 72.5%, 10.8%, 20%)
CIE-LABlab(50.74, 69.88, -35.10)
CIE-LCHlch(50.74, 78.20, 333.33°)
OKLaboklab(60.51% 0.2036 -0.096)
OKLCHoklch(60.51% 0.225 334.8)
XYZxyz(34.7599, 19.0462, 46.0925)
Luminance0.1904 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38B6 #38CC4E
analogous
#9838CC #CC38B6 #CC386C
triadic
#CC38B6 #B6CC38 #38B6CC
tetradic
#CC38B6 #CC9838 #38CC4E #386CCC
square
#CC38B6 #CC9838 #38CC4E #386CCC
split-complementary
#CC38B6 #6CCC38 #38CC98
monochromatic
#6E1C61 #9E298D #CC38B6 #D869C8 #E599DA

Accessibility & contrast

On white

4.37
#CC38B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#CC38B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38B6
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38B6#FFFFFF#000000##000000
##CC38B61.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#376BB9
Deuteranopia (green-blind)
#6C81B2
Tritanopia (blue-blind)
#D64473
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc38b6;
/* rgb */ color: rgb(204, 56, 182);
/* oklch */ color: oklch(60.5% 0.225 334.8);
Tailwind
colors: {
  custom: {
    50: '#df7dcc',
    500: '#cc38b6',
    950: '#000000',
  },
}
SCSS
$custom: #cc38b6;
$custom-light: #df7dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38b6",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 308.919,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60511,
    "c": 0.22505,
    "h": 334.8
  },
  "luminance": 0.19043
}

Semantic roles & 50–950 ramp

primary
#CC38B6
secondary
#8FD199
accent
#E25D45
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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