#CC38CB#CC38CB

#CC38CB is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.6% C 0.240 H 328.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#CC38CB
RGBrgb(204, 56, 203)
HSLhsl(300, 59%, 51%)
HSVhsv(300, 73%, 80%)
CMYKcmyk(0%, 72.5%, 0.5%, 20%)
CIE-LABlab(51.81, 73.09, -45.57)
CIE-LCHlch(51.81, 86.13, 328.06°)
OKLaboklab(61.63% 0.2044 -0.1262)
OKLCHoklch(61.63% 0.24 328.3)
XYZxyz(37.0951, 19.9802, 58.3911)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38CB #38CC39
analogous
#8338CC #CC38CB #CC3881
triadic
#CC38CB #CBCC38 #38CBCC
tetradic
#CC38CB #CC8338 #38CC39 #3881CC
square
#CC38CB #CC8338 #38CC39 #3881CC
split-complementary
#CC38CB #81CC38 #38CC83
monochromatic
#6E1C6D #9E299D #CC38CB #D869D8 #E599E4

Accessibility & contrast

On white

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

On black

5.00
#CC38CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC38CB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC38CB#FFFFFF#000000##000000
##CC38CB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B6FCF
Deuteranopia (green-blind)
#6182C7
Tritanopia (blue-blind)
#D34F7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc38cb;
/* rgb */ color: rgb(204, 56, 203);
/* oklch */ color: oklch(61.6% 0.240 328.3);
Tailwind
colors: {
  custom: {
    50: '#e07ddb',
    500: '#cc38cb',
    950: '#000000',
  },
}
SCSS
$custom: #cc38cb;
$custom-light: #e07ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38cb",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 300.405,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61629,
    "c": 0.2402,
    "h": 328.3
  },
  "luminance": 0.19978
}

Semantic roles & 50–950 ramp

primary
#CC38CB
secondary
#8FD190
accent
#E24645
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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