#CC38BA#CC38BA

#CC38BA is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.7% C 0.228 H 333.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#CC38BA
RGBrgb(204, 56, 186)
HSLhsl(307, 59%, 51%)
HSVhsv(307, 73%, 80%)
CMYKcmyk(0%, 72.5%, 8.8%, 20%)
CIE-LABlab(50.94, 70.47, -37.12)
CIE-LCHlch(50.94, 79.65, 332.22°)
OKLaboklab(60.72% 0.2039 -0.1018)
OKLCHoklch(60.72% 0.228 333.5)
XYZxyz(35.1792, 19.2139, 48.3007)
Luminance0.1921 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38BA #38CC4A
analogous
#9438CC #CC38BA #CC3870
triadic
#CC38BA #BACC38 #38BACC
tetradic
#CC38BA #CC9438 #38CC4A #3870CC
square
#CC38BA #CC9438 #38CC4A #3870CC
split-complementary
#CC38BA #70CC38 #38CC94
monochromatic
#6E1C64 #9E2990 #CC38BA #D869CB #E599DC

Accessibility & contrast

On white

4.34
#CC38BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#CC38BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38BA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38BA#FFFFFF#000000##000000
##CC38BA1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#336CBE
Deuteranopia (green-blind)
#6A81B6
Tritanopia (blue-blind)
#D54675
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc38ba;
/* rgb */ color: rgb(204, 56, 186);
/* oklch */ color: oklch(60.7% 0.228 333.5);
Tailwind
colors: {
  custom: {
    50: '#df7dcf',
    500: '#cc38ba',
    950: '#000000',
  },
}
SCSS
$custom: #cc38ba;
$custom-light: #df7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38ba",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 307.297,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60715,
    "c": 0.22786,
    "h": 333.5
  },
  "luminance": 0.19211
}

Semantic roles & 50–950 ramp

primary
#CC38BA
secondary
#8FD197
accent
#E25945
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CC38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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