#CF2F7D#CF2F7D

#CF2F7D is a mid, highly saturated pink. Relative luminance 0.168; OKLCH L 57.9% C 0.204 H 356.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#CF2F7D
RGBrgb(207, 47, 125)
HSLhsl(331, 63%, 50%)
HSVhsv(331, 77%, 81%)
CMYKcmyk(0%, 77.3%, 39.6%, 18.8%)
CIE-LABlab(47.99, 66.34, -5.30)
CIE-LCHlch(47.99, 66.55, 355.44°)
OKLaboklab(57.85% 0.204 -0.0131)
OKLCHoklch(57.85% 0.204 356.3)
XYZxyz(30.4525, 16.7830, 21.0339)
Luminance0.1678 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF2F7D #2FCF81
analogous
#CF2FCD #CF2F7D #CF312F
triadic
#CF2F7D #7DCF2F #2F7DCF
tetradic
#CF2F7D #CDCF2F #2FCF81 #312FCF
square
#CF2F7D #CDCF2F #2FCF81 #312FCF
split-complementary
#CF2F7D #2FCF31 #2FCDCF
monochromatic
#6B1841 #9D245F #CF2F7D #DB609C #E692BB

Accessibility & contrast

On white

4.82
#CF2F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#CF2F7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CF2F7D
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF2F7D#FFFFFF#000000##FFFFFF
##CF2F7D1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#515F7F
Deuteranopia (green-blind)
#7E7D79
Tritanopia (blue-blind)
#E01652
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #cf2f7d;
/* rgb */ color: rgb(207, 47, 125);
/* oklch */ color: oklch(57.9% 0.204 356.3);
Tailwind
colors: {
  custom: {
    50: '#e378a2',
    500: '#cf2f7d',
    950: '#000000',
  },
}
SCSS
$custom: #cf2f7d;
$custom-light: #e378a2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf2f7d",
  "rgb": {
    "r": 207,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 330.75,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57854,
    "c": 0.20438,
    "h": 356.3
  },
  "luminance": 0.16779
}

Semantic roles & 50–950 ramp

primary
#CF2F7D
secondary
#89D1AE
accent
#E69642
background
#FEF7F9
surface
#FDEEF2
border
#D5C9CC
text
#170A0F
muted
#857C7E

Preview Lab

Preview with #CF2F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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