#CC38B8#CC38B8

#CC38B8 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.6% C 0.226 H 334.1°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#CC38B8
RGBrgb(204, 56, 184)
HSLhsl(308, 59%, 51%)
HSVhsv(308, 73%, 80%)
CMYKcmyk(0%, 72.5%, 9.8%, 20%)
CIE-LABlab(50.84, 70.18, -36.11)
CIE-LCHlch(50.84, 78.92, 332.77°)
OKLaboklab(60.61% 0.2037 -0.0989)
OKLCHoklch(60.61% 0.226 334.1)
XYZxyz(34.9681, 19.1294, 47.1888)
Luminance0.1913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38B8 #38CC4C
analogous
#9638CC #CC38B8 #CC386E
triadic
#CC38B8 #B8CC38 #38B8CC
tetradic
#CC38B8 #CC9638 #38CC4C #386ECC
square
#CC38B8 #CC9638 #38CC4C #386ECC
split-complementary
#CC38B8 #6ECC38 #38CC96
monochromatic
#6E1C63 #9E298E #CC38B8 #D869C9 #E599DB

Accessibility & contrast

On white

4.35
#CC38B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#CC38B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38B8
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38B8#FFFFFF#000000##000000
##CC38B81.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#356BBC
Deuteranopia (green-blind)
#6B81B4
Tritanopia (blue-blind)
#D64574
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc38b8;
/* rgb */ color: rgb(204, 56, 184);
/* oklch */ color: oklch(60.6% 0.226 334.1);
Tailwind
colors: {
  custom: {
    50: '#df7dcd',
    500: '#cc38b8',
    950: '#000000',
  },
}
SCSS
$custom: #cc38b8;
$custom-light: #df7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38b8",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 308.108,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60612,
    "c": 0.22645,
    "h": 334.1
  },
  "luminance": 0.19126
}

Semantic roles & 50–950 ramp

primary
#CC38B8
secondary
#8FD198
accent
#E25B45
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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