#CC38C2#CC38C2

#CC38C2 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.1% C 0.234 H 331.0°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CC38C2
RGBrgb(204, 56, 194)
HSLhsl(304, 59%, 51%)
HSVhsv(304, 73%, 80%)
CMYKcmyk(0%, 72.5%, 4.9%, 20%)
CIE-LABlab(51.34, 71.68, -41.13)
CIE-LCHlch(51.34, 82.64, 330.15°)
OKLaboklab(61.14% 0.2042 -0.1133)
OKLCHoklch(61.14% 0.234 331)
XYZxyz(36.0536, 19.5636, 52.9058)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38C2 #38CC42
analogous
#8C38CC #CC38C2 #CC3878
triadic
#CC38C2 #C2CC38 #38C2CC
tetradic
#CC38C2 #CC8C38 #38CC42 #3878CC
square
#CC38C2 #CC8C38 #38CC42 #3878CC
split-complementary
#CC38C2 #78CC38 #38CC8C
monochromatic
#6E1C68 #9E2996 #CC38C2 #D869D1 #E599E0

Accessibility & contrast

On white

4.28
#CC38C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#CC38C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38C2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38C2#FFFFFF#000000##000000
##CC38C21.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A6DC6
Deuteranopia (green-blind)
#6681BE
Tritanopia (blue-blind)
#D44A7A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc38c2;
/* rgb */ color: rgb(204, 56, 194);
/* oklch */ color: oklch(61.1% 0.234 331.0);
Tailwind
colors: {
  custom: {
    50: '#df7dd5',
    500: '#cc38c2',
    950: '#000000',
  },
}
SCSS
$custom: #cc38c2;
$custom-light: #df7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38c2",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 304.054,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61136,
    "c": 0.23359,
    "h": 331
  },
  "luminance": 0.19561
}

Semantic roles & 50–950 ramp

primary
#CC38C2
secondary
#8FD194
accent
#E25045
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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