#CC38C8#CC38C8

#CC38C8 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.5% C 0.238 H 329.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#CC38C8
RGBrgb(204, 56, 200)
HSLhsl(302, 59%, 51%)
HSVhsv(302, 73%, 80%)
CMYKcmyk(0%, 72.5%, 2%, 20%)
CIE-LABlab(51.65, 72.62, -44.10)
CIE-LCHlch(51.65, 84.96, 328.73°)
OKLaboklab(61.46% 0.2044 -0.1219)
OKLCHoklch(61.46% 0.238 329.2)
XYZxyz(36.7410, 19.8386, 56.5265)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38C8 #38CC3C
analogous
#8638CC #CC38C8 #CC387E
triadic
#CC38C8 #C8CC38 #38C8CC
tetradic
#CC38C8 #CC8638 #38CC3C #387ECC
square
#CC38C8 #CC8638 #38CC3C #387ECC
split-complementary
#CC38C8 #7ECC38 #38CC86
monochromatic
#6E1C6B #9E299B #CC38C8 #D869D5 #E599E3

Accessibility & contrast

On white

4.23
#CC38C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#CC38C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38C8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38C8#FFFFFF#000000##000000
##CC38C81.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#216FCC
Deuteranopia (green-blind)
#6382C4
Tritanopia (blue-blind)
#D34D7D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc38c8;
/* rgb */ color: rgb(204, 56, 200);
/* oklch */ color: oklch(61.5% 0.238 329.2);
Tailwind
colors: {
  custom: {
    50: '#e07dd9',
    500: '#cc38c8',
    950: '#000000',
  },
}
SCSS
$custom: #cc38c8;
$custom-light: #e07dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38c8",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 301.622,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61462,
    "c": 0.23798,
    "h": 329.2
  },
  "luminance": 0.19836
}

Semantic roles & 50–950 ramp

primary
#CC38C8
secondary
#8FD191
accent
#E24A45
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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