#CC38C5#CC38C5

#CC38C5 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.3% C 0.236 H 330.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CC38C5
RGBrgb(204, 56, 197)
HSLhsl(303, 59%, 51%)
HSVhsv(303, 73%, 80%)
CMYKcmyk(0%, 72.5%, 3.4%, 20%)
CIE-LABlab(51.50, 72.15, -42.62)
CIE-LCHlch(51.50, 83.79, 329.43°)
OKLaboklab(61.3% 0.2043 -0.1176)
OKLCHoklch(61.3% 0.236 330.1)
XYZxyz(36.3939, 19.6998, 54.6981)
Luminance0.1970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38C5 #38CC3F
analogous
#8938CC #CC38C5 #CC387B
triadic
#CC38C5 #C5CC38 #38C5CC
tetradic
#CC38C5 #CC8938 #38CC3F #387BCC
square
#CC38C5 #CC8938 #38CC3F #387BCC
split-complementary
#CC38C5 #7BCC38 #38CC89
monochromatic
#6E1C6A #9E2999 #CC38C5 #D869D3 #E599E1

Accessibility & contrast

On white

4.25
#CC38C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#CC38C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38C5
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38C5#FFFFFF#000000##000000
##CC38C51.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#266EC9
Deuteranopia (green-blind)
#6482C1
Tritanopia (blue-blind)
#D44C7C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc38c5;
/* rgb */ color: rgb(204, 56, 197);
/* oklch */ color: oklch(61.3% 0.236 330.1);
Tailwind
colors: {
  custom: {
    50: '#e07dd7',
    500: '#cc38c5',
    950: '#000000',
  },
}
SCSS
$custom: #cc38c5;
$custom-light: #e07dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38c5",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 302.838,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61298,
    "c": 0.23578,
    "h": 330.1
  },
  "luminance": 0.19697
}

Semantic roles & 50–950 ramp

primary
#CC38C5
secondary
#8FD192
accent
#E24D45
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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