#CD38B1#CD38B1

#CD38B1 is a mid, highly saturated pink. Relative luminance 0.190; OKLCH L 60.4% C 0.222 H 336.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#CD38B1
RGBrgb(205, 56, 177)
HSLhsl(311, 60%, 51%)
HSVhsv(311, 73%, 80%)
CMYKcmyk(0%, 72.7%, 13.7%, 19.6%)
CIE-LABlab(50.67, 69.39, -32.28)
CIE-LCHlch(50.67, 76.53, 335.06°)
OKLaboklab(60.41% 0.2041 -0.0879)
OKLCHoklch(60.41% 0.222 336.7)
XYZxyz(34.5274, 18.9850, 43.4325)
Luminance0.1898 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38B1 #38CD54
analogous
#9E38CD #CD38B1 #CD3866
triadic
#CD38B1 #B1CD38 #38B1CD
tetradic
#CD38B1 #CD9E38 #38CD54 #3866CD
square
#CD38B1 #CD9E38 #38CD54 #3866CD
split-complementary
#CD38B1 #66CD38 #38CD9E
monochromatic
#6F1C5F #A02889 #CD38B1 #D969C4 #E69AD7

Accessibility & contrast

On white

4.38
#CD38B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#CD38B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38B1
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38B1#FFFFFF#000000##000000
##CD38B11.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6AB4
Deuteranopia (green-blind)
#6F81AD
Tritanopia (blue-blind)
#D84271
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cd38b1;
/* rgb */ color: rgb(205, 56, 177);
/* oklch */ color: oklch(60.4% 0.222 336.7);
Tailwind
colors: {
  custom: {
    50: '#e07dc8',
    500: '#cd38b1',
    950: '#000000',
  },
}
SCSS
$custom: #cd38b1;
$custom-light: #e07dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38b1",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 311.275,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60413,
    "c": 0.2222,
    "h": 336.7
  },
  "luminance": 0.18982
}

Semantic roles & 50–950 ramp

primary
#CD38B1
secondary
#8FD19C
accent
#E36345
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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