#CF40A1#CF40A1

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

Color values

HEX#CF40A1
RGBrgb(207, 64, 161)
HSLhsl(319, 60%, 53%)
HSVhsv(319, 69%, 81%)
CMYKcmyk(0%, 69.1%, 22.2%, 18.8%)
CIE-LABlab(51.28, 64.95, -21.90)
CIE-LCHlch(51.28, 68.54, 341.37°)
OKLaboklab(60.69% 0.1953 -0.0585)
OKLCHoklch(60.69% 0.204 343.3)
XYZxyz(33.9997, 19.5088, 35.6863)
Luminance0.1951 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40A1 #40CF6E
analogous
#B640CF #CF40A1 #CF4059
triadic
#CF40A1 #A1CF40 #40A1CF
tetradic
#CF40A1 #CFB640 #40CF6E #4059CF
square
#CF40A1 #CFB640 #40CF6E #4059CF
split-complementary
#CF40A1 #59CF40 #40CFB6
monochromatic
#771E5A #A82A7F #CF40A1 #DB71B9 #E8A2D1

Accessibility & contrast

On white

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

On black

4.90
#CF40A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40A1
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40A1#FFFFFF#000000##000000
##CF40A11.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6BA4
Deuteranopia (green-blind)
#79839E
Tritanopia (blue-blind)
#DC406B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cf40a1;
/* rgb */ color: rgb(207, 64, 161);
/* oklch */ color: oklch(60.7% 0.204 343.3);
Tailwind
colors: {
  custom: {
    50: '#e280bd',
    500: '#cf40a1',
    950: '#000000',
  },
}
SCSS
$custom: #cf40a1;
$custom-light: #e280bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40a1",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 319.301,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6069,
    "c": 0.2039,
    "h": 343.3
  },
  "luminance": 0.19505
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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