#CF42AC#CF42AC

#CF42AC is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.4% C 0.208 H 339.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CF42AC
RGBrgb(207, 66, 172)
HSLhsl(315, 59%, 54%)
HSVhsv(315, 68%, 81%)
CMYKcmyk(0%, 68.1%, 16.9%, 18.8%)
CIE-LABlab(52.00, 65.72, -27.25)
CIE-LCHlch(52.00, 71.14, 337.48°)
OKLaboklab(61.37% 0.195 -0.0736)
OKLCHoklch(61.37% 0.208 339.3)
XYZxyz(35.1275, 20.1436, 41.0598)
Luminance0.2014 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF42AC #42CF65
analogous
#AC42CF #CF42AC #CF4265
triadic
#CF42AC #ACCF42 #42ACCF
tetradic
#CF42AC #CFAC42 #42CF65 #4265CF
square
#CF42AC #CFAC42 #42CF65 #4265CF
split-complementary
#CF42AC #65CF42 #42CFAC
monochromatic
#781F62 #A92B8A #CF42AC #DB73C1 #E8A4D7

Accessibility & contrast

On white

4.18
#CF42AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CF42AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF42AC
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF42AC#FFFFFF#000000##000000
##CF42AC1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A6EAF
Deuteranopia (green-blind)
#7684A9
Tritanopia (blue-blind)
#DB4771
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf42ac;
/* rgb */ color: rgb(207, 66, 172);
/* oklch */ color: oklch(61.4% 0.208 339.3);
Tailwind
colors: {
  custom: {
    50: '#e181c5',
    500: '#cf42ac',
    950: '#000000',
  },
}
SCSS
$custom: #cf42ac;
$custom-light: #e181c5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf42ac",
  "rgb": {
    "r": 207,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 314.894,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61367,
    "c": 0.20846,
    "h": 339.3
  },
  "luminance": 0.2014
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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