#CD42BF#CD42BF

#CD42BF is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 62.0% C 0.221 H 332.2°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#CD42BF
RGBrgb(205, 66, 191)
HSLhsl(306, 58%, 53%)
HSVhsv(306, 68%, 80%)
CMYKcmyk(0%, 67.8%, 6.8%, 19.6%)
CIE-LABlab(52.55, 68.04, -37.47)
CIE-LCHlch(52.55, 77.68, 331.16°)
OKLaboklab(61.99% 0.1952 -0.1028)
OKLCHoklch(61.99% 0.221 332.2)
XYZxyz(36.5291, 20.6400, 51.3401)
Luminance0.2064 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD42BF #42CD50
analogous
#9542CD #CD42BF #CD4279
triadic
#CD42BF #BFCD42 #42BFCD
tetradic
#CD42BF #CD9542 #42CD50 #4279CD
square
#CD42BF #CD9542 #42CD50 #4279CD
split-complementary
#CD42BF #79CD42 #42CD95
monochromatic
#761F6D #A62C9A #CD42BF #DA72CF #E7A3E0

Accessibility & contrast

On white

4.10
#CD42BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#CD42BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD42BF
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD42BF#FFFFFF#000000##000000
##CD42BF1.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B71C3
Deuteranopia (green-blind)
#6D84BC
Tritanopia (blue-blind)
#D6507B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd42bf;
/* rgb */ color: rgb(205, 66, 191);
/* oklch */ color: oklch(62.0% 0.221 332.2);
Tailwind
colors: {
  custom: {
    50: '#e082d3',
    500: '#cd42bf',
    950: '#000000',
  },
}
SCSS
$custom: #cd42bf;
$custom-light: #e082d3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd42bf",
  "rgb": {
    "r": 205,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 306.043,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61991,
    "c": 0.22066,
    "h": 332.2
  },
  "luminance": 0.20637
}

Semantic roles & 50–950 ramp

primary
#CD42BF
secondary
#97D39D
accent
#E15646
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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