#CC38B5#CC38B5

#CC38B5 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.5% C 0.224 H 335.1°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#CC38B5
RGBrgb(204, 56, 181)
HSLhsl(309, 59%, 51%)
HSVhsv(309, 73%, 80%)
CMYKcmyk(0%, 72.5%, 11.3%, 20%)
CIE-LABlab(50.69, 69.74, -34.59)
CIE-LCHlch(50.69, 77.85, 333.62°)
OKLaboklab(60.46% 0.2035 -0.0945)
OKLCHoklch(60.46% 0.224 335.1)
XYZxyz(34.6569, 19.0050, 45.5502)
Luminance0.1900 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38B5 #38CC4F
analogous
#9938CC #CC38B5 #CC386B
triadic
#CC38B5 #B5CC38 #38B5CC
tetradic
#CC38B5 #CC9938 #38CC4F #386BCC
square
#CC38B5 #CC9938 #38CC4F #386BCC
split-complementary
#CC38B5 #6BCC38 #38CC99
monochromatic
#6E1C61 #9E298C #CC38B5 #D869C7 #E599D9

Accessibility & contrast

On white

4.37
#CC38B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#CC38B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38B5
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38B5#FFFFFF#000000##000000
##CC38B51.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#386BB8
Deuteranopia (green-blind)
#6C80B1
Tritanopia (blue-blind)
#D64473
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc38b5;
/* rgb */ color: rgb(204, 56, 181);
/* oklch */ color: oklch(60.5% 0.224 335.1);
Tailwind
colors: {
  custom: {
    50: '#df7dcb',
    500: '#cc38b5',
    950: '#000000',
  },
}
SCSS
$custom: #cc38b5;
$custom-light: #df7dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38b5",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 309.324,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.6046,
    "c": 0.22436,
    "h": 335.1
  },
  "luminance": 0.19002
}

Semantic roles & 50–950 ramp

primary
#CC38B5
secondary
#8FD199
accent
#E25E45
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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