#CC38C1#CC38C1

#CC38C1 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.233 H 331.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#CC38C1
RGBrgb(204, 56, 193)
HSLhsl(304, 59%, 51%)
HSVhsv(304, 73%, 80%)
CMYKcmyk(0%, 72.5%, 5.4%, 20%)
CIE-LABlab(51.29, 71.53, -40.63)
CIE-LCHlch(51.29, 82.26, 330.40°)
OKLaboklab(61.08% 0.2042 -0.1119)
OKLCHoklch(61.08% 0.233 331.3)
XYZxyz(35.9416, 19.5189, 52.3163)
Luminance0.1952 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38C1 #38CC43
analogous
#8D38CC #CC38C1 #CC3877
triadic
#CC38C1 #C1CC38 #38C1CC
tetradic
#CC38C1 #CC8D38 #38CC43 #3877CC
square
#CC38C1 #CC8D38 #38CC43 #3877CC
split-complementary
#CC38C1 #77CC38 #38CC8D
monochromatic
#6E1C67 #9E2995 #CC38C1 #D869D0 #E599DF

Accessibility & contrast

On white

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

On black

4.90
#CC38C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38C1
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38C1#FFFFFF#000000##000000
##CC38C11.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B6DC5
Deuteranopia (green-blind)
#6781BD
Tritanopia (blue-blind)
#D44A79
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc38c1;
/* rgb */ color: rgb(204, 56, 193);
/* oklch */ color: oklch(61.1% 0.233 331.3);
Tailwind
colors: {
  custom: {
    50: '#df7dd4',
    500: '#cc38c1',
    950: '#000000',
  },
}
SCSS
$custom: #cc38c1;
$custom-light: #df7dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38c1",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 304.459,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61082,
    "c": 0.23286,
    "h": 331.3
  },
  "luminance": 0.19516
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC38C1

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

Preview Lab → · Contrast checker → · Palette generator →

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