#CD42B5#CD42B5

#CD42B5 is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.5% C 0.213 H 335.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#CD42B5
RGBrgb(205, 66, 181)
HSLhsl(310, 58%, 53%)
HSVhsv(310, 68%, 80%)
CMYKcmyk(0%, 67.8%, 11.7%, 19.6%)
CIE-LABlab(52.08, 66.52, -32.41)
CIE-LCHlch(52.08, 74.00, 334.02°)
OKLaboklab(61.49% 0.1943 -0.0883)
OKLCHoklch(61.49% 0.213 335.6)
XYZxyz(35.4660, 20.2148, 45.7411)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42B5 #42CD5A
analogous
#A042CD #CD42B5 #CD426F
triadic
#CD42B5 #B5CD42 #42B5CD
tetradic
#CD42B5 #CDA042 #42CD5A #426FCD
square
#CD42B5 #CDA042 #42CD5A #426FCD
split-complementary
#CD42B5 #6FCD42 #42CDA0
monochromatic
#761F67 #A62C91 #CD42B5 #DA72C8 #E7A3DB

Accessibility & contrast

On white

4.16
#CD42B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#CD42B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42B5
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42B5#FFFFFF#000000##000000
##CD42B51.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#436FB8
Deuteranopia (green-blind)
#7184B2
Tritanopia (blue-blind)
#D74B76
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cd42b5;
/* rgb */ color: rgb(205, 66, 181);
/* oklch */ color: oklch(61.5% 0.213 335.6);
Tailwind
colors: {
  custom: {
    50: '#e081cb',
    500: '#cd42b5',
    950: '#000000',
  },
}
SCSS
$custom: #cd42b5;
$custom-light: #e081cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42b5",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 310.36,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61494,
    "c": 0.2134,
    "h": 335.6
  },
  "luminance": 0.20212
}

Semantic roles & 50–950 ramp

primary
#CD42B5
secondary
#97D3A2
accent
#E16146
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD42B5

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

Preview Lab → · Contrast checker → · Palette generator →

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