#CD38C4#CD38C4

#CD38C4 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.4% C 0.236 H 330.7°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CD38C4
RGBrgb(205, 56, 196)
HSLhsl(304, 60%, 51%)
HSVhsv(304, 73%, 80%)
CMYKcmyk(0%, 72.7%, 4.4%, 19.6%)
CIE-LABlab(51.61, 72.21, -41.86)
CIE-LCHlch(51.61, 83.46, 329.90°)
OKLaboklab(61.39% 0.2053 -0.1154)
OKLCHoklch(61.39% 0.236 330.7)
XYZxyz(36.5547, 19.7959, 54.1096)
Luminance0.1979 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38C4 #38CD41
analogous
#8B38CD #CD38C4 #CD3879
triadic
#CD38C4 #C4CD38 #38C4CD
tetradic
#CD38C4 #CD8B38 #38CD41 #3879CD
square
#CD38C4 #CD8B38 #38CD41 #3879CD
split-complementary
#CD38C4 #79CD38 #38CD8B
monochromatic
#6F1C6A #A02898 #CD38C4 #D969D3 #E69AE1

Accessibility & contrast

On white

4.24
#CD38C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#CD38C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38C4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38C4#FFFFFF#000000##000000
##CD38C41.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#286EC8
Deuteranopia (green-blind)
#6682C0
Tritanopia (blue-blind)
#D54B7B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cd38c4;
/* rgb */ color: rgb(205, 56, 196);
/* oklch */ color: oklch(61.4% 0.236 330.7);
Tailwind
colors: {
  custom: {
    50: '#e07dd6',
    500: '#cd38c4',
    950: '#000000',
  },
}
SCSS
$custom: #cd38c4;
$custom-light: #e07dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38c4",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 303.624,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.61391,
    "c": 0.23553,
    "h": 330.7
  },
  "luminance": 0.19793
}

Semantic roles & 50–950 ramp

primary
#CD38C4
secondary
#8FD193
accent
#E34E45
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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