#CD42E5#CD42E5

#CD42E5 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 64.1% C 0.250 H 321.3°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#CD42E5
RGBrgb(205, 66, 229)
HSLhsl(291, 76%, 58%)
HSVhsv(291, 71%, 90%)
CMYKcmyk(10.5%, 71.2%, 0%, 10.2%)
CIE-LABlab(54.59, 74.34, -55.93)
CIE-LCHlch(54.59, 93.03, 323.04°)
OKLaboklab(64.11% 0.1955 -0.1564)
OKLCHoklch(64.11% 0.25 321.3)
XYZxyz(41.2663, 22.5349, 76.2896)
Luminance0.2253 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42E5 #5AE542
analogous
#7C42E5 #CD42E5 #E542AB
triadic
#CD42E5 #E5CD42 #42E5CD
tetradic
#CD42E5 #E57C42 #5AE542 #42ABE5
square
#CD42E5 #E57C42 #5AE542 #42ABE5
split-complementary
#CD42E5 #ABE542 #42E57C
monochromatic
#841598 #B31CCE #CD42E5 #DB78EC #E9AEF4

Accessibility & contrast

On white

3.81
#CD42E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#CD42E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42E5
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42E5#FFFFFF#000000##000000
##CD42E51.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EA
Deuteranopia (green-blind)
#5688E1
Tritanopia (blue-blind)
#CF6190
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cd42e5;
/* rgb */ color: rgb(205, 66, 229);
/* oklch */ color: oklch(64.1% 0.250 321.3);
Tailwind
colors: {
  custom: {
    50: '#e083ee',
    500: '#cd42e5',
    950: '#000000',
  },
}
SCSS
$custom: #cd42e5;
$custom-light: #e083ee;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42e5",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 291.166,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.64111,
    "c": 0.25039,
    "h": 321.3
  },
  "luminance": 0.22533
}

Semantic roles & 50–950 ramp

primary
#CD42E5
secondary
#AAE2A1
accent
#F23551
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CD42E5

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

Preview Lab → · Contrast checker → · Palette generator →

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