#CC38CA#CC38CA

#CC38CA is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.6% C 0.239 H 328.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#CC38CA
RGBrgb(204, 56, 202)
HSLhsl(301, 59%, 51%)
HSVhsv(301, 73%, 80%)
CMYKcmyk(0%, 72.5%, 1%, 20%)
CIE-LABlab(51.76, 72.93, -45.08)
CIE-LCHlch(51.76, 85.74, 328.28°)
OKLaboklab(61.57% 0.2044 -0.1248)
OKLCHoklch(61.57% 0.239 328.6)
XYZxyz(36.9763, 19.9327, 57.7655)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38CA #38CC3A
analogous
#8438CC #CC38CA #CC3880
triadic
#CC38CA #CACC38 #38CACC
tetradic
#CC38CA #CC8438 #38CC3A #3880CC
square
#CC38CA #CC8438 #38CC3A #3880CC
split-complementary
#CC38CA #80CC38 #38CC84
monochromatic
#6E1C6C #9E299D #CC38CA #D869D7 #E599E4

Accessibility & contrast

On white

4.21
#CC38CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#CC38CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38CA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38CA#FFFFFF#000000##000000
##CC38CA1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D6FCE
Deuteranopia (green-blind)
#6282C6
Tritanopia (blue-blind)
#D34E7E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc38ca;
/* rgb */ color: rgb(204, 56, 202);
/* oklch */ color: oklch(61.6% 0.239 328.6);
Tailwind
colors: {
  custom: {
    50: '#e07ddb',
    500: '#cc38ca',
    950: '#000000',
  },
}
SCSS
$custom: #cc38ca;
$custom-light: #e07ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38ca",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 300.811,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61573,
    "c": 0.23946,
    "h": 328.6
  },
  "luminance": 0.1993
}

Semantic roles & 50–950 ramp

primary
#CC38CA
secondary
#8FD190
accent
#E24845
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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