#CD38CA#CD38CA

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

Color values

HEX#CD38CA
RGBrgb(205, 56, 202)
HSLhsl(301, 60%, 51%)
HSVhsv(301, 73%, 80%)
CMYKcmyk(0%, 72.7%, 1.5%, 19.6%)
CIE-LABlab(51.92, 73.14, -44.81)
CIE-LCHlch(51.92, 85.78, 328.50°)
OKLaboklab(61.72% 0.2054 -0.124)
OKLCHoklch(61.72% 0.24 328.9)
XYZxyz(37.2513, 20.0745, 57.7784)
Luminance0.2007 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38CA #38CD3B
analogous
#8538CD #CD38CA #CD387F
triadic
#CD38CA #CACD38 #38CACD
tetradic
#CD38CA #CD8538 #38CD3B #387FCD
square
#CD38CA #CD8538 #38CD3B #387FCD
split-complementary
#CD38CA #7FCD38 #38CD85
monochromatic
#6F1C6D #A0289D #CD38CA #D969D7 #E69AE4

Accessibility & contrast

On white

4.19
#CD38CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD38CA#FFFFFF#000000##000000
##CD38CA1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F6FCE
Deuteranopia (green-blind)
#6383C6
Tritanopia (blue-blind)
#D44E7E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd38ca;
/* rgb */ color: rgb(205, 56, 202);
/* oklch */ color: oklch(61.7% 0.240 328.9);
Tailwind
colors: {
  custom: {
    50: '#e07ddb',
    500: '#cd38ca',
    950: '#000000',
  },
}
SCSS
$custom: #cd38ca;
$custom-light: #e07ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38ca",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 301.208,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.61719,
    "c": 0.23993,
    "h": 328.9
  },
  "luminance": 0.20072
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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