#CD42BA#CD42BA

#CD42BA is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.7% C 0.217 H 333.9°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CD42BA
RGBrgb(205, 66, 186)
HSLhsl(308, 58%, 53%)
HSVhsv(308, 68%, 80%)
CMYKcmyk(0%, 67.8%, 9.3%, 19.6%)
CIE-LABlab(52.31, 67.27, -34.95)
CIE-LCHlch(52.31, 75.81, 332.55°)
OKLaboklab(61.74% 0.1948 -0.0956)
OKLCHoklch(61.74% 0.217 333.9)
XYZxyz(35.9882, 20.4237, 48.4916)
Luminance0.2042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42BA #42CD55
analogous
#9A42CD #CD42BA #CD4275
triadic
#CD42BA #BACD42 #42BACD
tetradic
#CD42BA #CD9A42 #42CD55 #4275CD
square
#CD42BA #CD9A42 #42CD55 #4275CD
split-complementary
#CD42BA #75CD42 #42CD9A
monochromatic
#761F6A #A62C95 #CD42BA #DA72CC #E7A3DD

Accessibility & contrast

On white

4.13
#CD42BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#CD42BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42BA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42BA#FFFFFF#000000##000000
##CD42BA1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F70BD
Deuteranopia (green-blind)
#6F84B7
Tritanopia (blue-blind)
#D64E79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd42ba;
/* rgb */ color: rgb(205, 66, 186);
/* oklch */ color: oklch(61.7% 0.217 333.9);
Tailwind
colors: {
  custom: {
    50: '#e081cf',
    500: '#cd42ba',
    950: '#000000',
  },
}
SCSS
$custom: #cd42ba;
$custom-light: #e081cf;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42ba",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 308.201,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61739,
    "c": 0.21699,
    "h": 333.9
  },
  "luminance": 0.20421
}

Semantic roles & 50–950 ramp

primary
#CD42BA
secondary
#97D3A0
accent
#E15C46
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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