#CF40AF#CF40AF

#CF40AF is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.3% C 0.213 H 338.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CF40AF
RGBrgb(207, 64, 175)
HSLhsl(313, 60%, 53%)
HSVhsv(313, 69%, 81%)
CMYKcmyk(0%, 69.1%, 15.5%, 18.8%)
CIE-LABlab(51.87, 66.87, -29.21)
CIE-LCHlch(51.87, 72.97, 336.40°)
OKLaboklab(61.32% 0.1977 -0.0791)
OKLCHoklch(61.32% 0.213 338.2)
XYZxyz(35.3041, 20.0306, 42.5561)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40AF #40CF60
analogous
#A840CF #CF40AF #CF4067
triadic
#CF40AF #AFCF40 #40AFCF
tetradic
#CF40AF #CFA840 #40CF60 #4067CF
square
#CF40AF #CFA840 #40CF60 #4067CF
split-complementary
#CF40AF #67CF40 #40CFA8
monochromatic
#771E63 #A82A8C #CF40AF #DB71C3 #E8A2D8

Accessibility & contrast

On white

4.20
#CF40AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CF40AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40AF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40AF#FFFFFF#000000##000000
##CF40AF1.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#466DB2
Deuteranopia (green-blind)
#7484AC
Tritanopia (blue-blind)
#DA4672
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf40af;
/* rgb */ color: rgb(207, 64, 175);
/* oklch */ color: oklch(61.3% 0.213 338.2);
Tailwind
colors: {
  custom: {
    50: '#e180c7',
    500: '#cf40af',
    950: '#000000',
  },
}
SCSS
$custom: #cf40af;
$custom-light: #e180c7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40af",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 313.427,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61317,
    "c": 0.21291,
    "h": 338.2
  },
  "luminance": 0.20027
}

Semantic roles & 50–950 ramp

primary
#CF40AF
secondary
#97D4A4
accent
#E36845
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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