#CF42AD#CF42AD

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

Color values

HEX#CF42AD
RGBrgb(207, 66, 173)
HSLhsl(314, 59%, 54%)
HSVhsv(314, 68%, 81%)
CMYKcmyk(0%, 68.1%, 16.4%, 18.8%)
CIE-LABlab(52.04, 65.86, -27.77)
CIE-LCHlch(52.04, 71.47, 337.14°)
OKLaboklab(61.41% 0.1952 -0.0751)
OKLCHoklch(61.41% 0.209 339)
XYZxyz(35.2239, 20.1822, 41.5675)
Luminance0.2018 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42AD #42CF64
analogous
#AA42CF #CF42AD #CF4266
triadic
#CF42AD #ADCF42 #42ADCF
tetradic
#CF42AD #CFAA42 #42CF64 #4266CF
square
#CF42AD #CFAA42 #42CF64 #4266CF
split-complementary
#CF42AD #66CF42 #42CFAA
monochromatic
#781F62 #A92B8B #CF42AD #DB73C2 #E8A4D7

Accessibility & contrast

On white

4.17
#CF42AD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CF42AD#FFFFFF#000000##000000
##CF42AD1.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#496EB0
Deuteranopia (green-blind)
#7684AA
Tritanopia (blue-blind)
#DA4772
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf42ad;
/* rgb */ color: rgb(207, 66, 173);
/* oklch */ color: oklch(61.4% 0.209 339.0);
Tailwind
colors: {
  custom: {
    50: '#e181c5',
    500: '#cf42ad',
    950: '#000000',
  },
}
SCSS
$custom: #cf42ad;
$custom-light: #e181c5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42ad",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 314.468,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61412,
    "c": 0.20912,
    "h": 339
  },
  "luminance": 0.20179
}

Semantic roles & 50–950 ramp

primary
#CF42AD
secondary
#98D5A7
accent
#E36B45
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF42AD

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

Preview Lab → · Contrast checker → · Palette generator →

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