#CF40A5#CF40A5

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

Color values

HEX#CF40A5
RGBrgb(207, 64, 165)
HSLhsl(318, 60%, 53%)
HSVhsv(318, 69%, 81%)
CMYKcmyk(0%, 69.1%, 20.3%, 18.8%)
CIE-LABlab(51.44, 65.48, -24.00)
CIE-LCHlch(51.44, 69.74, 339.87°)
OKLaboklab(60.86% 0.1961 -0.0644)
OKLCHoklch(60.86% 0.206 341.8)
XYZxyz(34.3581, 19.6522, 37.5738)
Luminance0.1965 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40A5 #40CF6A
analogous
#B140CF #CF40A5 #CF405D
triadic
#CF40A5 #A5CF40 #40A5CF
tetradic
#CF40A5 #CFB140 #40CF6A #405DCF
square
#CF40A5 #CFB140 #40CF6A #405DCF
split-complementary
#CF40A5 #5DCF40 #40CFB1
monochromatic
#771E5D #A82A83 #CF40A5 #DB71BC #E8A2D3

Accessibility & contrast

On white

4.26
#CF40A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CF40A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40A5
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40A5#FFFFFF#000000##000000
##CF40A51.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6CA8
Deuteranopia (green-blind)
#7883A2
Tritanopia (blue-blind)
#DC426D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf40a5;
/* rgb */ color: rgb(207, 64, 165);
/* oklch */ color: oklch(60.9% 0.206 341.8);
Tailwind
colors: {
  custom: {
    50: '#e280c0',
    500: '#cf40a5',
    950: '#000000',
  },
}
SCSS
$custom: #cf40a5;
$custom-light: #e280c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40a5",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 317.622,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60863,
    "c": 0.20638,
    "h": 341.8
  },
  "luminance": 0.19649
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF40A5

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

Preview Lab → · Contrast checker → · Palette generator →

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