#CF40A2#CF40A2

#CF40A2 is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.7% C 0.205 H 342.9°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CF40A2
RGBrgb(207, 64, 162)
HSLhsl(319, 60%, 53%)
HSVhsv(319, 69%, 81%)
CMYKcmyk(0%, 69.1%, 21.7%, 18.8%)
CIE-LABlab(51.32, 65.08, -22.43)
CIE-LCHlch(51.32, 68.83, 340.99°)
OKLaboklab(60.73% 0.1955 -0.06)
OKLCHoklch(60.73% 0.205 342.9)
XYZxyz(34.0882, 19.5442, 36.1526)
Luminance0.1954 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40A2 #40CF6D
analogous
#B440CF #CF40A2 #CF405A
triadic
#CF40A2 #A2CF40 #40A2CF
tetradic
#CF40A2 #CFB440 #40CF6D #405ACF
square
#CF40A2 #CFB440 #40CF6D #405ACF
split-complementary
#CF40A2 #5ACF40 #40CFB4
monochromatic
#771E5B #A82A80 #CF40A2 #DB71BA #E8A2D2

Accessibility & contrast

On white

4.28
#CF40A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#CF40A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40A2
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40A2#FFFFFF#000000##000000
##CF40A21.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA5
Deuteranopia (green-blind)
#79839F
Tritanopia (blue-blind)
#DC416B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cf40a2;
/* rgb */ color: rgb(207, 64, 162);
/* oklch */ color: oklch(60.7% 0.205 342.9);
Tailwind
colors: {
  custom: {
    50: '#e280bd',
    500: '#cf40a2',
    950: '#000000',
  },
}
SCSS
$custom: #cf40a2;
$custom-light: #e280bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40a2",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 318.881,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60733,
    "c": 0.20452,
    "h": 342.9
  },
  "luminance": 0.19541
}

Semantic roles & 50–950 ramp

primary
#CF40A2
secondary
#97D4AA
accent
#E37745
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF40A2

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

Preview Lab → · Contrast checker → · Palette generator →

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