#CD38B2#CD38B2

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

Color values

HEX#CD38B2
RGBrgb(205, 56, 178)
HSLhsl(311, 60%, 51%)
HSVhsv(311, 73%, 80%)
CMYKcmyk(0%, 72.7%, 13.2%, 19.6%)
CIE-LABlab(50.72, 69.54, -32.79)
CIE-LCHlch(50.72, 76.88, 334.75°)
OKLaboklab(60.46% 0.2042 -0.0893)
OKLCHoklch(60.46% 0.223 336.4)
XYZxyz(34.6275, 19.0250, 43.9593)
Luminance0.1902 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38B2 #38CD53
analogous
#9D38CD #CD38B2 #CD3867
triadic
#CD38B2 #B2CD38 #38B2CD
tetradic
#CD38B2 #CD9D38 #38CD53 #3867CD
square
#CD38B2 #CD9D38 #38CD53 #3867CD
split-complementary
#CD38B2 #67CD38 #38CD9D
monochromatic
#6F1C60 #A0288A #CD38B2 #D969C5 #E69AD8

Accessibility & contrast

On white

4.37
#CD38B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD38B2#FFFFFF#000000##000000
##CD38B21.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd38b2;
/* rgb */ color: rgb(205, 56, 178);
/* oklch */ color: oklch(60.5% 0.223 336.4);
Tailwind
colors: {
  custom: {
    50: '#e07dc9',
    500: '#cd38b2',
    950: '#000000',
  },
}
SCSS
$custom: #cd38b2;
$custom-light: #e07dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38b2",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 310.872,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60462,
    "c": 0.22287,
    "h": 336.4
  },
  "luminance": 0.19022
}

Semantic roles & 50–950 ramp

primary
#CD38B2
secondary
#8FD19B
accent
#E36145
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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