#CC38B9#CC38B9

#CC38B9 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.7% C 0.227 H 333.8°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#CC38B9
RGBrgb(204, 56, 185)
HSLhsl(308, 59%, 51%)
HSVhsv(308, 73%, 80%)
CMYKcmyk(0%, 72.5%, 9.3%, 20%)
CIE-LABlab(50.89, 70.32, -36.62)
CIE-LCHlch(50.89, 79.29, 332.49°)
OKLaboklab(60.66% 0.2038 -0.1003)
OKLCHoklch(60.66% 0.227 333.8)
XYZxyz(35.0732, 19.1715, 47.7428)
Luminance0.1917 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC38B9 #38CC4B
analogous
#9538CC #CC38B9 #CC386F
triadic
#CC38B9 #B9CC38 #38B9CC
tetradic
#CC38B9 #CC9538 #38CC4B #386FCC
square
#CC38B9 #CC9538 #38CC4B #386FCC
split-complementary
#CC38B9 #6FCC38 #38CC95
monochromatic
#6E1C63 #9E298F #CC38B9 #D869CA #E599DB

Accessibility & contrast

On white

4.34
#CC38B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC38B9#FFFFFF#000000##000000
##CC38B91.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#346BBD
Deuteranopia (green-blind)
#6A81B5
Tritanopia (blue-blind)
#D54675
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc38b9;
/* rgb */ color: rgb(204, 56, 185);
/* oklch */ color: oklch(60.7% 0.227 333.8);
Tailwind
colors: {
  custom: {
    50: '#df7dce',
    500: '#cc38b9',
    950: '#000000',
  },
}
SCSS
$custom: #cc38b9;
$custom-light: #df7dce;
$custom-dark: #000000;
JSON
{
  "hex": "#cc38b9",
  "rgb": {
    "r": 204,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 307.703,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60663,
    "c": 0.22716,
    "h": 333.8
  },
  "luminance": 0.19168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC38B9

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

Preview Lab → · Contrast checker → · Palette generator →

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