#CF40AC#CF40AC

#CF40AC is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.2% C 0.211 H 339.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#CF40AC
RGBrgb(207, 64, 172)
HSLhsl(315, 60%, 53%)
HSVhsv(315, 69%, 81%)
CMYKcmyk(0%, 69.1%, 16.9%, 18.8%)
CIE-LABlab(51.74, 66.44, -27.66)
CIE-LCHlch(51.74, 71.97, 337.40°)
OKLaboklab(61.18% 0.1972 -0.0747)
OKLCHoklch(61.18% 0.211 339.2)
XYZxyz(35.0127, 19.9140, 41.0215)
Luminance0.1991 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40AC #40CF63
analogous
#AA40CF #CF40AC #CF4064
triadic
#CF40AC #ACCF40 #40ACCF
tetradic
#CF40AC #CFAA40 #40CF63 #4064CF
square
#CF40AC #CFAA40 #40CF63 #4064CF
split-complementary
#CF40AC #64CF40 #40CFAA
monochromatic
#771E61 #A82A89 #CF40AC #DB71C1 #E8A2D7

Accessibility & contrast

On white

4.22
#CF40AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#CF40AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40AC
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40AC#FFFFFF#000000##000000
##CF40AC1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#486DAF
Deuteranopia (green-blind)
#7583A9
Tritanopia (blue-blind)
#DB4571
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf40ac;
/* rgb */ color: rgb(207, 64, 172);
/* oklch */ color: oklch(61.2% 0.211 339.2);
Tailwind
colors: {
  custom: {
    50: '#e180c5',
    500: '#cf40ac',
    950: '#000000',
  },
}
SCSS
$custom: #cf40ac;
$custom-light: #e180c5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40ac",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 314.685,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61178,
    "c": 0.2109,
    "h": 339.2
  },
  "luminance": 0.19911
}

Semantic roles & 50–950 ramp

primary
#CF40AC
secondary
#97D4A6
accent
#E36C45
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF40AC

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

Preview Lab → · Contrast checker → · Palette generator →

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