#CD38B6#CD38B6

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

Color values

HEX#CD38B6
RGBrgb(205, 56, 182)
HSLhsl(309, 60%, 51%)
HSVhsv(309, 73%, 80%)
CMYKcmyk(0%, 72.7%, 11.2%, 19.6%)
CIE-LABlab(50.91, 70.11, -34.83)
CIE-LCHlch(50.91, 78.29, 333.58°)
OKLaboklab(60.66% 0.2046 -0.0952)
OKLCHoklch(60.66% 0.226 335.1)
XYZxyz(35.0349, 19.1880, 46.1054)
Luminance0.1918 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38B6 #38CD4F
analogous
#9938CD #CD38B6 #CD386B
triadic
#CD38B6 #B6CD38 #38B6CD
tetradic
#CD38B6 #CD9938 #38CD4F #386BCD
square
#CD38B6 #CD9938 #38CD4F #386BCD
split-complementary
#CD38B6 #6BCD38 #38CD99
monochromatic
#6F1C62 #A0288D #CD38B6 #D969C8 #E69ADA

Accessibility & contrast

On white

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

On black

4.84
#CD38B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38B6
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38B6#FFFFFF#000000##000000
##CD38B61.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#376BB9
Deuteranopia (green-blind)
#6D81B2
Tritanopia (blue-blind)
#D74473
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cd38b6;
/* rgb */ color: rgb(205, 56, 182);
/* oklch */ color: oklch(60.7% 0.226 335.1);
Tailwind
colors: {
  custom: {
    50: '#e07dcc',
    500: '#cd38b6',
    950: '#000000',
  },
}
SCSS
$custom: #cd38b6;
$custom-light: #e07dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38b6",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 309.262,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60661,
    "c": 0.2256,
    "h": 335.1
  },
  "luminance": 0.19185
}

Semantic roles & 50–950 ramp

primary
#CD38B6
secondary
#8FD19A
accent
#E35D45
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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