#CD38C9#CD38C9

#CD38C9 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.7% C 0.239 H 329.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CD38C9
RGBrgb(205, 56, 201)
HSLhsl(302, 60%, 51%)
HSVhsv(302, 73%, 80%)
CMYKcmyk(0%, 72.7%, 2%, 19.6%)
CIE-LABlab(51.87, 72.99, -44.32)
CIE-LCHlch(51.87, 85.39, 328.73°)
OKLaboklab(61.66% 0.2054 -0.1226)
OKLCHoklch(61.66% 0.239 329.2)
XYZxyz(37.1333, 20.0273, 57.1569)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38C9 #38CD3C
analogous
#8638CD #CD38C9 #CD387E
triadic
#CD38C9 #C9CD38 #38C9CD
tetradic
#CD38C9 #CD8638 #38CD3C #387ECD
square
#CD38C9 #CD8638 #38CD3C #387ECD
split-complementary
#CD38C9 #7ECD38 #38CD86
monochromatic
#6F1C6D #A0289C #CD38C9 #D969D6 #E69AE4

Accessibility & contrast

On white

4.20
#CD38C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CD38C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38C9
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38C9#FFFFFF#000000##000000
##CD38C91.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#216FCD
Deuteranopia (green-blind)
#6383C5
Tritanopia (blue-blind)
#D44D7E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd38c9;
/* rgb */ color: rgb(205, 56, 201);
/* oklch */ color: oklch(61.7% 0.239 329.2);
Tailwind
colors: {
  custom: {
    50: '#e07dda',
    500: '#cd38c9',
    950: '#000000',
  },
}
SCSS
$custom: #cd38c9;
$custom-light: #e07dda;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38c9",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 301.611,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.61663,
    "c": 0.23919,
    "h": 329.2
  },
  "luminance": 0.20025
}

Semantic roles & 50–950 ramp

primary
#CD38C9
secondary
#8FD191
accent
#E34945
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD38C9

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

Preview Lab → · Contrast checker → · Palette generator →

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