#CC38B7#CC38B7

#CC38B7 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.6% C 0.226 H 334.4°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#CC38B7
RGBrgb(204, 56, 183)
HSLhsl(309, 59%, 51%)
HSVhsv(309, 73%, 80%)
CMYKcmyk(0%, 72.5%, 10.3%, 20%)
CIE-LABlab(50.79, 70.03, -35.61)
CIE-LCHlch(50.79, 78.56, 333.05°)
OKLaboklab(60.56% 0.2037 -0.0974)
OKLCHoklch(60.56% 0.226 334.4)
XYZxyz(34.8636, 19.0876, 46.6387)
Luminance0.1908 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38B7 #38CC4D
analogous
#9738CC #CC38B7 #CC386D
triadic
#CC38B7 #B7CC38 #38B7CC
tetradic
#CC38B7 #CC9738 #38CC4D #386DCC
square
#CC38B7 #CC9738 #38CC4D #386DCC
split-complementary
#CC38B7 #6DCC38 #38CC97
monochromatic
#6E1C62 #9E298E #CC38B7 #D869C9 #E599DA

Accessibility & contrast

On white

4.36
#CC38B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#CC38B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38B7
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38B7#FFFFFF#000000##000000
##CC38B71.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#366BBA
Deuteranopia (green-blind)
#6B81B3
Tritanopia (blue-blind)
#D64574
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc38b7;
/* rgb */ color: rgb(204, 56, 183);
/* oklch */ color: oklch(60.6% 0.226 334.4);
Tailwind
colors: {
  custom: {
    50: '#df7dcd',
    500: '#cc38b7',
    950: '#000000',
  },
}
SCSS
$custom: #cc38b7;
$custom-light: #df7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38b7",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 308.514,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60561,
    "c": 0.22575,
    "h": 334.4
  },
  "luminance": 0.19085
}

Semantic roles & 50–950 ramp

primary
#CC38B7
secondary
#8FD198
accent
#E25C45
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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