#CD40CA#CD40CA

#CD40CA is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.4% C 0.231 H 328.8°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#CD40CA
RGBrgb(205, 64, 202)
HSLhsl(301, 59%, 53%)
HSVhsv(301, 69%, 80%)
CMYKcmyk(0%, 68.8%, 1.5%, 19.6%)
CIE-LABlab(52.85, 70.49, -43.34)
CIE-LCHlch(52.85, 82.75, 328.42°)
OKLaboklab(62.39% 0.1979 -0.1198)
OKLCHoklch(62.39% 0.231 328.8)
XYZxyz(37.6705, 20.9129, 57.9182)
Luminance0.2091 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD40CA #40CD43
analogous
#8A40CD #CD40CA #CD4083
triadic
#CD40CA #CACD40 #40CACD
tetradic
#CD40CA #CD8A40 #40CD43 #4083CD
square
#CD40CA #CD8A40 #40CD43 #4083CD
split-complementary
#CD40CA #83CD40 #40CD8A
monochromatic
#741E72 #A52BA2 #CD40CA #DA71D7 #E6A1E5

Accessibility & contrast

On white

4.05
#CD40CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#CD40CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD40CA
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD40CA#FFFFFF#000000##000000
##CD40CA1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D72CE
Deuteranopia (green-blind)
#6685C6
Tritanopia (blue-blind)
#D45381
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cd40ca;
/* rgb */ color: rgb(205, 64, 202);
/* oklch */ color: oklch(62.4% 0.231 328.8);
Tailwind
colors: {
  custom: {
    50: '#e081da',
    500: '#cd40ca',
    950: '#000000',
  },
}
SCSS
$custom: #cd40ca;
$custom-light: #e081da;
$custom-dark: #000000;
JSON
{
  "hex": "#cd40ca",
  "rgb": {
    "r": 205,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 301.277,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62388,
    "c": 0.23128,
    "h": 328.8
  },
  "luminance": 0.2091
}

Semantic roles & 50–950 ramp

primary
#CD40CA
secondary
#96D397
accent
#E24946
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CD40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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