#CD38CF#CD38CF

#CD38CF is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 62.0% C 0.244 H 327.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CD38CF
RGBrgb(205, 56, 207)
HSLhsl(299, 61%, 52%)
HSVhsv(299, 73%, 81%)
CMYKcmyk(1%, 72.9%, 0%, 18.8%)
CIE-LABlab(52.19, 73.94, -47.25)
CIE-LCHlch(52.19, 87.75, 327.42°)
OKLaboklab(62% 0.2054 -0.1311)
OKLCHoklch(62% 0.244 327.5)
XYZxyz(37.8529, 20.3152, 60.9469)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38CF #3ACF38
analogous
#8238CF #CD38CF #CF3886
triadic
#CD38CF #CFCD38 #38CFCD
tetradic
#CD38CF #CF8238 #3ACF38 #3886CF
square
#CD38CF #CF8238 #3ACF38 #3886CF
split-complementary
#CD38CF #86CF38 #38CF82
monochromatic
#701B71 #A127A3 #CD38CF #D969DB #E69BE7

Accessibility & contrast

On white

4.15
#CD38CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CD38CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38CF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38CF#FFFFFF#000000##000000
##CD38CF1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1470D3
Deuteranopia (green-blind)
#6083CB
Tritanopia (blue-blind)
#D35081
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd38cf;
/* rgb */ color: rgb(205, 56, 207);
/* oklch */ color: oklch(62.0% 0.244 327.5);
Tailwind
colors: {
  custom: {
    50: '#e07ede',
    500: '#cd38cf',
    950: '#000000',
  },
}
SCSS
$custom: #cd38cf;
$custom-light: #e07ede;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38cf",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 299.205,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.61999,
    "c": 0.24365,
    "h": 327.5
  },
  "luminance": 0.20312
}

Semantic roles & 50–950 ramp

primary
#CD38CF
secondary
#91D390
accent
#E44446
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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