#CF40A6#CF40A6

#CF40A6 is a mid, highly saturated pink. Relative luminance 0.197; OKLCH L 60.9% C 0.207 H 341.4°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CF40A6
RGBrgb(207, 64, 166)
HSLhsl(317, 60%, 53%)
HSVhsv(317, 69%, 81%)
CMYKcmyk(0%, 69.1%, 19.8%, 18.8%)
CIE-LABlab(51.48, 65.62, -24.53)
CIE-LCHlch(51.48, 70.05, 339.50°)
OKLaboklab(60.91% 0.1963 -0.0659)
OKLCHoklch(60.91% 0.207 341.4)
XYZxyz(34.4495, 19.6887, 38.0550)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40A6 #40CF69
analogous
#B140CF #CF40A6 #CF405E
triadic
#CF40A6 #A6CF40 #40A6CF
tetradic
#CF40A6 #CFB140 #40CF69 #405ECF
square
#CF40A6 #CFB140 #40CF69 #405ECF
split-complementary
#CF40A6 #5ECF40 #40CFB1
monochromatic
#771E5D #A82A84 #CF40A6 #DB71BD #E8A2D4

Accessibility & contrast

On white

4.25
#CF40A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#CF40A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40A6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40A6#FFFFFF#000000##000000
##CF40A61.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6CA9
Deuteranopia (green-blind)
#7883A3
Tritanopia (blue-blind)
#DB426D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf40a6;
/* rgb */ color: rgb(207, 64, 166);
/* oklch */ color: oklch(60.9% 0.207 341.4);
Tailwind
colors: {
  custom: {
    50: '#e280c0',
    500: '#cf40a6',
    950: '#000000',
  },
}
SCSS
$custom: #cf40a6;
$custom-light: #e280c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40a6",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 317.203,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60908,
    "c": 0.20702,
    "h": 341.4
  },
  "luminance": 0.19685
}

Semantic roles & 50–950 ramp

primary
#CF40A6
secondary
#97D4A8
accent
#E37245
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF40A6

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

Preview Lab → · Contrast checker → · Palette generator →

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