#CD38C2#CD38C2

#CD38C2 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.3% C 0.234 H 331.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CD38C2
RGBrgb(205, 56, 194)
HSLhsl(304, 60%, 51%)
HSVhsv(304, 73%, 80%)
CMYKcmyk(0%, 72.7%, 5.4%, 19.6%)
CIE-LABlab(51.50, 71.90, -40.86)
CIE-LCHlch(51.50, 82.70, 330.39°)
OKLaboklab(61.28% 0.2053 -0.1125)
OKLCHoklch(61.28% 0.234 331.3)
XYZxyz(36.3286, 19.7054, 52.9186)
Luminance0.1970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38C2 #38CD43
analogous
#8E38CD #CD38C2 #CD3877
triadic
#CD38C2 #C2CD38 #38C2CD
tetradic
#CD38C2 #CD8E38 #38CD43 #3877CD
square
#CD38C2 #CD8E38 #38CD43 #3877CD
split-complementary
#CD38C2 #77CD38 #38CD8E
monochromatic
#6F1C69 #A02897 #CD38C2 #D969D1 #E69AE0

Accessibility & contrast

On white

4.25
#CD38C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#CD38C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38C2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38C2#FFFFFF#000000##000000
##CD38C21.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B6EC6
Deuteranopia (green-blind)
#6782BE
Tritanopia (blue-blind)
#D54A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cd38c2;
/* rgb */ color: rgb(205, 56, 194);
/* oklch */ color: oklch(61.3% 0.234 331.3);
Tailwind
colors: {
  custom: {
    50: '#e07dd5',
    500: '#cd38c2',
    950: '#000000',
  },
}
SCSS
$custom: #cd38c2;
$custom-light: #e07dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38c2",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 304.43,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.61283,
    "c": 0.23409,
    "h": 331.3
  },
  "luminance": 0.19703
}

Semantic roles & 50–950 ramp

primary
#CD38C2
secondary
#8FD194
accent
#E35045
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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