#CC38C4#CC38C4

#CC38C4 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.2% C 0.235 H 330.4°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#CC38C4
RGBrgb(204, 56, 196)
HSLhsl(303, 59%, 51%)
HSVhsv(303, 73%, 80%)
CMYKcmyk(0%, 72.5%, 3.9%, 20%)
CIE-LABlab(51.44, 71.99, -42.12)
CIE-LCHlch(51.44, 83.41, 329.67°)
OKLaboklab(61.24% 0.2043 -0.1162)
OKLCHoklch(61.24% 0.235 330.4)
XYZxyz(36.2797, 19.6541, 54.0967)
Luminance0.1965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38C4 #38CC40
analogous
#8A38CC #CC38C4 #CC387A
triadic
#CC38C4 #C4CC38 #38C4CC
tetradic
#CC38C4 #CC8A38 #38CC40 #387ACC
square
#CC38C4 #CC8A38 #38CC40 #387ACC
split-complementary
#CC38C4 #7ACC38 #38CC8A
monochromatic
#6E1C69 #9E2998 #CC38C4 #D869D2 #E599E1

Accessibility & contrast

On white

4.26
#CC38C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CC38C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38C4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38C4#FFFFFF#000000##000000
##CC38C41.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#276EC8
Deuteranopia (green-blind)
#6582C0
Tritanopia (blue-blind)
#D44B7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc38c4;
/* rgb */ color: rgb(204, 56, 196);
/* oklch */ color: oklch(61.2% 0.235 330.4);
Tailwind
colors: {
  custom: {
    50: '#df7dd6',
    500: '#cc38c4',
    950: '#000000',
  },
}
SCSS
$custom: #cc38c4;
$custom-light: #df7dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38c4",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 303.243,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61243,
    "c": 0.23504,
    "h": 330.4
  },
  "luminance": 0.19651
}

Semantic roles & 50–950 ramp

primary
#CC38C4
secondary
#8FD193
accent
#E24E45
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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