#CF5172#CF5172

#CF5172 is a mid, vivid pink. Relative luminance 0.204; OKLCH L 60.9% C 0.161 H 7.1°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#CF5172
RGBrgb(207, 81, 114)
HSLhsl(344, 57%, 56%)
HSVhsv(344, 61%, 81%)
CMYKcmyk(0%, 60.9%, 44.9%, 18.8%)
CIE-LABlab(52.25, 52.61, 7.55)
CIE-LCHlch(52.25, 53.15, 8.17°)
OKLaboklab(60.91% 0.1601 0.0199)
OKLCHoklch(60.91% 0.161 7.1)
XYZxyz(31.7141, 20.3689, 18.1778)
Luminance0.2036 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF5172 #51CFAE
analogous
#CF51B1 #CF5172 #CF6F51
triadic
#CF5172 #72CF51 #5172CF
tetradic
#CF5172 #B1CF51 #51CFAE #6F51CF
square
#CF5172 #B1CF51 #51CFAE #6F51CF
split-complementary
#CF5172 #51CF6F #51B1CF
monochromatic
#82243C #B23153 #CF5172 #DC8199 #E9B1C0

Accessibility & contrast

On white

4.14
#CF5172 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#CF5172 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF5172
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF5172#FFFFFF#000000##000000
##CF51721.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B6D73
Deuteranopia (green-blind)
#8C866F
Tritanopia (blue-blind)
#E0415E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf5172;
/* rgb */ color: rgb(207, 81, 114);
/* oklch */ color: oklch(60.9% 0.161 7.1);
Tailwind
colors: {
  custom: {
    50: '#e2889a',
    500: '#cf5172',
    950: '#000000',
  },
}
SCSS
$custom: #cf5172;
$custom-light: #e2889a;
$custom-dark: #000000;
JSON
{
  "hex": "#cf5172",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 344.286,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60905,
    "c": 0.16132,
    "h": 7.1
  },
  "luminance": 0.20365
}

Semantic roles & 50–950 ramp

primary
#CF5172
secondary
#A4D8CA
accent
#E0B848
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0E
muted
#847D7E

Preview Lab

Preview with #CF5172

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

Preview Lab → · Contrast checker → · Palette generator →

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