#CF40A4#CF40A4

#CF40A4 is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.8% C 0.206 H 342.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CF40A4
RGBrgb(207, 64, 164)
HSLhsl(318, 60%, 53%)
HSVhsv(318, 69%, 81%)
CMYKcmyk(0%, 69.1%, 20.8%, 18.8%)
CIE-LABlab(51.40, 65.35, -23.48)
CIE-LCHlch(51.40, 69.44, 340.24°)
OKLaboklab(60.82% 0.1959 -0.063)
OKLCHoklch(60.82% 0.206 342.2)
XYZxyz(34.2674, 19.6159, 37.0963)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40A4 #40CF6B
analogous
#B240CF #CF40A4 #CF405C
triadic
#CF40A4 #A4CF40 #40A4CF
tetradic
#CF40A4 #CFB240 #40CF6B #405CCF
square
#CF40A4 #CFB240 #40CF6B #405CCF
split-complementary
#CF40A4 #5CCF40 #40CFB2
monochromatic
#771E5C #A82A82 #CF40A4 #DB71BB #E8A2D3

Accessibility & contrast

On white

4.27
#CF40A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#CF40A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40A4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40A4#FFFFFF#000000##000000
##CF40A41.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6CA7
Deuteranopia (green-blind)
#7883A1
Tritanopia (blue-blind)
#DC416C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cf40a4;
/* rgb */ color: rgb(207, 64, 164);
/* oklch */ color: oklch(60.8% 0.206 342.2);
Tailwind
colors: {
  custom: {
    50: '#e280bf',
    500: '#cf40a4',
    950: '#000000',
  },
}
SCSS
$custom: #cf40a4;
$custom-light: #e280bf;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40a4",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 318.042,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6082,
    "c": 0.20576,
    "h": 342.2
  },
  "luminance": 0.19613
}

Semantic roles & 50–950 ramp

primary
#CF40A4
secondary
#97D4A9
accent
#E37445
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF40A4

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

Preview Lab → · Contrast checker → · Palette generator →

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