#CD38CC#CD38CC

#CD38CC is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.8% C 0.241 H 328.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CD38CC
RGBrgb(205, 56, 204)
HSLhsl(300, 60%, 51%)
HSVhsv(300, 73%, 80%)
CMYKcmyk(0%, 72.7%, 0.5%, 19.6%)
CIE-LABlab(52.03, 73.46, -45.79)
CIE-LCHlch(52.03, 86.56, 328.06°)
OKLaboklab(61.83% 0.2054 -0.1268)
OKLCHoklch(61.83% 0.241 328.3)
XYZxyz(37.4897, 20.1699, 59.0336)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38CC #38CD39
analogous
#8338CD #CD38CC #CD3881
triadic
#CD38CC #CCCD38 #38CCCD
tetradic
#CD38CC #CD8338 #38CD39 #3881CD
square
#CD38CC #CD8338 #38CD39 #3881CD
split-complementary
#CD38CC #81CD38 #38CD83
monochromatic
#6F1C6E #A0289F #CD38CC #D969D9 #E69AE5

Accessibility & contrast

On white

4.17
#CD38CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CD38CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38CC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38CC#FFFFFF#000000##000000
##CD38CC1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B70D0
Deuteranopia (green-blind)
#6183C8
Tritanopia (blue-blind)
#D44F7F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd38cc;
/* rgb */ color: rgb(205, 56, 204);
/* oklch */ color: oklch(61.8% 0.241 328.3);
Tailwind
colors: {
  custom: {
    50: '#e07edc',
    500: '#cd38cc',
    950: '#000000',
  },
}
SCSS
$custom: #cd38cc;
$custom-light: #e07edc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38cc",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 300.403,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.6183,
    "c": 0.24141,
    "h": 328.3
  },
  "luminance": 0.20167
}

Semantic roles & 50–950 ramp

primary
#CD38CC
secondary
#8FD190
accent
#E34645
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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