#CC38CF#CC38CF

#CC38CF is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.9% C 0.243 H 327.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CC38CF
RGBrgb(204, 56, 207)
HSLhsl(299, 61%, 52%)
HSVhsv(299, 73%, 81%)
CMYKcmyk(1.4%, 72.9%, 0%, 18.8%)
CIE-LABlab(52.03, 73.73, -47.52)
CIE-LCHlch(52.03, 87.71, 327.20°)
OKLaboklab(61.86% 0.2043 -0.1319)
OKLCHoklch(61.86% 0.243 327.2)
XYZxyz(37.5779, 20.1734, 60.9340)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38CF #3BCF38
analogous
#8138CF #CC38CF #CF3887
triadic
#CC38CF #CFCC38 #38CFCC
tetradic
#CC38CF #CF8138 #3BCF38 #3887CF
square
#CC38CF #CF8138 #3BCF38 #3887CF
split-complementary
#CC38CF #87CF38 #38CF81
monochromatic
#701B71 #A027A3 #CC38CF #D969DB #E59BE7

Accessibility & contrast

On white

4.17
#CC38CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CC38CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38CF
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38CF#FFFFFF#000000##000000
##CC38CF1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1170D3
Deuteranopia (green-blind)
#5F83CB
Tritanopia (blue-blind)
#D25181
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cc38cf;
/* rgb */ color: rgb(204, 56, 207);
/* oklch */ color: oklch(61.9% 0.243 327.2);
Tailwind
colors: {
  custom: {
    50: '#e07ede',
    500: '#cc38cf',
    950: '#000000',
  },
}
SCSS
$custom: #cc38cf;
$custom-light: #e07ede;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38cf",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 298.808,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61855,
    "c": 0.2432,
    "h": 327.2
  },
  "luminance": 0.20171
}

Semantic roles & 50–950 ramp

primary
#CC38CF
secondary
#92D390
accent
#E44447
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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