#CD38B7#CD38B7

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

Color values

HEX#CD38B7
RGBrgb(205, 56, 183)
HSLhsl(309, 60%, 51%)
HSVhsv(309, 73%, 80%)
CMYKcmyk(0%, 72.7%, 10.7%, 19.6%)
CIE-LABlab(50.95, 70.26, -35.34)
CIE-LCHlch(50.95, 78.64, 333.30°)
OKLaboklab(60.71% 0.2046 -0.0966)
OKLCHoklch(60.71% 0.226 334.7)
XYZxyz(35.1386, 19.2295, 46.6516)
Luminance0.1923 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38B7 #38CD4E
analogous
#9838CD #CD38B7 #CD386C
triadic
#CD38B7 #B7CD38 #38B7CD
tetradic
#CD38B7 #CD9838 #38CD4E #386CCD
square
#CD38B7 #CD9838 #38CD4E #386CCD
split-complementary
#CD38B7 #6CCD38 #38CD98
monochromatic
#6F1C63 #A0288E #CD38B7 #D969C9 #E69ADA

Accessibility & contrast

On white

4.33
#CD38B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#CD38B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38B7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38B7#FFFFFF#000000##000000
##CD38B71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#376BBA
Deuteranopia (green-blind)
#6C81B3
Tritanopia (blue-blind)
#D74574
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cd38b7;
/* rgb */ color: rgb(205, 56, 183);
/* oklch */ color: oklch(60.7% 0.226 334.7);
Tailwind
colors: {
  custom: {
    50: '#e07dcd',
    500: '#cd38b7',
    950: '#000000',
  },
}
SCSS
$custom: #cd38b7;
$custom-light: #e07dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38b7",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 308.859,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60711,
    "c": 0.22629,
    "h": 334.7
  },
  "luminance": 0.19226
}

Semantic roles & 50–950 ramp

primary
#CD38B7
secondary
#8FD199
accent
#E35C45
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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