#CF2F7C#CF2F7C

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

Color values

HEX#CF2F7C
RGBrgb(207, 47, 124)
HSLhsl(331, 63%, 50%)
HSVhsv(331, 77%, 81%)
CMYKcmyk(0%, 77.3%, 40.1%, 18.8%)
CIE-LABlab(47.95, 66.24, -4.73)
CIE-LCHlch(47.95, 66.41, 355.91°)
OKLaboklab(57.82% 0.2037 -0.0116)
OKLCHoklch(57.82% 0.204 356.7)
XYZxyz(30.3889, 16.7576, 20.6991)
Luminance0.1675 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF2F7C #2FCF82
analogous
#CF2FCC #CF2F7C #CF322F
triadic
#CF2F7C #7CCF2F #2F7CCF
tetradic
#CF2F7C #CCCF2F #2FCF82 #322FCF
square
#CF2F7C #CCCF2F #2FCF82 #322FCF
split-complementary
#CF2F7C #2FCF32 #2FCCCF
monochromatic
#6B1840 #9D245E #CF2F7C #DB609B #E692BB

Accessibility & contrast

On white

4.83
#CF2F7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#CF2F7C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CF2F7C
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF2F7C#FFFFFF#000000##FFFFFF
##CF2F7C1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525F7E
Deuteranopia (green-blind)
#7E7D78
Tritanopia (blue-blind)
#E01552
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #cf2f7c;
/* rgb */ color: rgb(207, 47, 124);
/* oklch */ color: oklch(57.8% 0.204 356.7);
Tailwind
colors: {
  custom: {
    50: '#e378a1',
    500: '#cf2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #cf2f7c;
$custom-light: #e378a1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf2f7c",
  "rgb": {
    "r": 207,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 331.125,
    "s": 62.992,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57819,
    "c": 0.20399,
    "h": 356.7
  },
  "luminance": 0.16754
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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