#CF40AA#CF40AA

#CF40AA is a mid, highly saturated pink. Relative luminance 0.198; OKLCH L 61.1% C 0.210 H 340.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#CF40AA
RGBrgb(207, 64, 170)
HSLhsl(316, 60%, 53%)
HSVhsv(316, 69%, 81%)
CMYKcmyk(0%, 69.1%, 17.9%, 18.8%)
CIE-LABlab(51.65, 66.16, -26.62)
CIE-LCHlch(51.65, 71.32, 338.09°)
OKLaboklab(61.09% 0.1969 -0.0718)
OKLCHoklch(61.09% 0.21 340)
XYZxyz(34.8221, 19.8378, 40.0176)
Luminance0.1983 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40AA #40CF65
analogous
#AC40CF #CF40AA #CF4063
triadic
#CF40AA #AACF40 #40AACF
tetradic
#CF40AA #CFAC40 #40CF65 #4063CF
square
#CF40AA #CFAC40 #40CF65 #4063CF
split-complementary
#CF40AA #63CF40 #40CFAC
monochromatic
#771E60 #A82A87 #CF40AA #DB71C0 #E8A2D6

Accessibility & contrast

On white

4.23
#CF40AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#CF40AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40AA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40AA#FFFFFF#000000##000000
##CF40AA1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#496DAD
Deuteranopia (green-blind)
#7683A7
Tritanopia (blue-blind)
#DB4470
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cf40aa;
/* rgb */ color: rgb(207, 64, 170);
/* oklch */ color: oklch(61.1% 0.210 340.0);
Tailwind
colors: {
  custom: {
    50: '#e180c3',
    500: '#cf40aa',
    950: '#000000',
  },
}
SCSS
$custom: #cf40aa;
$custom-light: #e180c3;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40aa",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 315.524,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61087,
    "c": 0.20959,
    "h": 340
  },
  "luminance": 0.19834
}

Semantic roles & 50–950 ramp

primary
#CF40AA
secondary
#97D4A7
accent
#E36E45
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #CF40AA

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

Preview Lab → · Contrast checker → · Palette generator →

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