#CF40A7#CF40A7

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

Color values

HEX#CF40A7
RGBrgb(207, 64, 167)
HSLhsl(317, 60%, 53%)
HSVhsv(317, 69%, 81%)
CMYKcmyk(0%, 69.1%, 19.3%, 18.8%)
CIE-LABlab(51.53, 65.75, -25.05)
CIE-LCHlch(51.53, 70.36, 339.14°)
OKLaboklab(60.95% 0.1964 -0.0674)
OKLCHoklch(60.95% 0.208 341.1)
XYZxyz(34.5416, 19.7255, 38.5400)
Luminance0.1972 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40A7 #40CF68
analogous
#AF40CF #CF40A7 #CF405F
triadic
#CF40A7 #A7CF40 #40A7CF
tetradic
#CF40A7 #CFAF40 #40CF68 #405FCF
square
#CF40A7 #CFAF40 #40CF68 #405FCF
split-complementary
#CF40A7 #5FCF40 #40CFAF
monochromatic
#771E5E #A82A85 #CF40A7 #DB71BE #E8A2D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CF40A7#FFFFFF#000000##000000
##CF40A71.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)
#4B6CAA
Deuteranopia (green-blind)
#7783A4
Tritanopia (blue-blind)
#DB436E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf40a7;
/* rgb */ color: rgb(207, 64, 167);
/* oklch */ color: oklch(61.0% 0.208 341.1);
Tailwind
colors: {
  custom: {
    50: '#e280c1',
    500: '#cf40a7',
    950: '#000000',
  },
}
SCSS
$custom: #cf40a7;
$custom-light: #e280c1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40a7",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 316.783,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60952,
    "c": 0.20765,
    "h": 341.1
  },
  "luminance": 0.19722
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF40A7

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

Preview Lab → · Contrast checker → · Palette generator →

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