#CC38CC#CC38CC

#CC38CC is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.7% C 0.241 H 328.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CC38CC
RGBrgb(204, 56, 204)
HSLhsl(300, 59%, 51%)
HSVhsv(300, 73%, 80%)
CMYKcmyk(0%, 72.5%, 0%, 20%)
CIE-LABlab(51.87, 73.25, -46.06)
CIE-LCHlch(51.87, 86.52, 327.84°)
OKLaboklab(61.69% 0.2044 -0.1276)
OKLCHoklch(61.69% 0.241 328)
XYZxyz(37.2146, 20.0281, 59.0208)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38CC #38CC38
analogous
#8238CC #CC38CC #CC3882
triadic
#CC38CC #CCCC38 #38CCCC
tetradic
#CC38CC #CC8238 #38CC38 #3882CC
square
#CC38CC #CC8238 #38CC38 #3882CC
split-complementary
#CC38CC #82CC38 #38CC82
monochromatic
#6E1C6E #9E299E #CC38CC #D869D8 #E599E5

Accessibility & contrast

On white

4.20
#CC38CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CC38CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38CC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38CC#FFFFFF#000000##000000
##CC38CC1.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#196FD0
Deuteranopia (green-blind)
#6082C8
Tritanopia (blue-blind)
#D24F7F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cc38cc;
/* rgb */ color: rgb(204, 56, 204);
/* oklch */ color: oklch(61.7% 0.241 328.0);
Tailwind
colors: {
  custom: {
    50: '#e07ddc',
    500: '#cc38cc',
    950: '#000000',
  },
}
SCSS
$custom: #cc38cc;
$custom-light: #e07ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38cc",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 300,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61685,
    "c": 0.24095,
    "h": 328
  },
  "luminance": 0.20025
}

Semantic roles & 50–950 ramp

primary
#CC38CC
secondary
#8FD18F
accent
#E24545
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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