#CF42A4#CF42A4

#CF42A4 is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.0% C 0.203 H 342.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#CF42A4
RGBrgb(207, 66, 164)
HSLhsl(318, 59%, 54%)
HSVhsv(318, 68%, 81%)
CMYKcmyk(0%, 68.1%, 20.8%, 18.8%)
CIE-LABlab(51.66, 64.61, -23.08)
CIE-LCHlch(51.66, 68.61, 340.35°)
OKLaboklab(61.01% 0.1937 -0.0618)
OKLCHoklch(61.01% 0.203 342.3)
XYZxyz(34.3823, 19.8455, 37.1346)
Luminance0.1984 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42A4 #42CF6D
analogous
#B342CF #CF42A4 #CF425D
triadic
#CF42A4 #A4CF42 #42A4CF
tetradic
#CF42A4 #CFB342 #42CF6D #425DCF
square
#CF42A4 #CFB342 #42CF6D #425DCF
split-complementary
#CF42A4 #5DCF42 #42CFB3
monochromatic
#781F5D #A92B82 #CF42A4 #DB73BB #E8A4D3

Accessibility & contrast

On white

4.23
#CF42A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#CF42A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42A4
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42A4#FFFFFF#000000##000000
##CF42A41.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6CA7
Deuteranopia (green-blind)
#7984A1
Tritanopia (blue-blind)
#DC436D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf42a4;
/* rgb */ color: rgb(207, 66, 164);
/* oklch */ color: oklch(61.0% 0.203 342.3);
Tailwind
colors: {
  custom: {
    50: '#e281bf',
    500: '#cf42a4',
    950: '#000000',
  },
}
SCSS
$custom: #cf42a4;
$custom-light: #e281bf;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42a4",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 318.298,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61011,
    "c": 0.20329,
    "h": 342.3
  },
  "luminance": 0.19842
}

Semantic roles & 50–950 ramp

primary
#CF42A4
secondary
#98D5AB
accent
#E37545
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF42A4

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

Preview Lab → · Contrast checker → · Palette generator →

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