#CF5171#CF5171

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

Color values

HEX#CF5171
RGBrgb(207, 81, 113)
HSLhsl(345, 57%, 56%)
HSVhsv(345, 61%, 81%)
CMYKcmyk(0%, 60.9%, 45.4%, 18.8%)
CIE-LABlab(52.23, 52.51, 8.11)
CIE-LCHlch(52.23, 53.13, 8.78°)
OKLaboklab(60.88% 0.1597 0.0213)
OKLCHoklch(60.88% 0.161 7.6)
XYZxyz(31.6575, 20.3463, 17.8797)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF5171 #51CFAF
analogous
#CF51B0 #CF5171 #CF7051
triadic
#CF5171 #71CF51 #5171CF
tetradic
#CF5171 #B0CF51 #51CFAF #7051CF
square
#CF5171 #B0CF51 #51CFAF #7051CF
split-complementary
#CF5171 #51CF70 #51B0CF
monochromatic
#82243C #B23152 #CF5171 #DC8198 #E9B1BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CF5171#FFFFFF#000000##000000
##CF51711.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)
#6B6D72
Deuteranopia (green-blind)
#8C866E
Tritanopia (blue-blind)
#E0405D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf5171;
/* rgb */ color: rgb(207, 81, 113);
/* oklch */ color: oklch(60.9% 0.161 7.6);
Tailwind
colors: {
  custom: {
    50: '#e28899',
    500: '#cf5171',
    950: '#000000',
  },
}
SCSS
$custom: #cf5171;
$custom-light: #e28899;
$custom-dark: #000000;
JSON
{
  "hex": "#cf5171",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 113
  },
  "hsl": {
    "h": 344.762,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60878,
    "c": 0.16113,
    "h": 7.6
  },
  "luminance": 0.20343
}

Semantic roles & 50–950 ramp

primary
#CF5171
secondary
#A4D8CB
accent
#E0B948
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0D
muted
#847D7E

Preview Lab

Preview with #CF5171

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

Preview Lab → · Contrast checker → · Palette generator →

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