#CF5178#CF5178

#CF5178 is a mid, vivid pink. Relative luminance 0.205; OKLCH L 61.1% C 0.163 H 4.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CF5178
RGBrgb(207, 81, 120)
HSLhsl(341, 57%, 56%)
HSVhsv(341, 61%, 81%)
CMYKcmyk(0%, 60.9%, 42%, 18.8%)
CIE-LABlab(52.41, 53.21, 4.19)
CIE-LCHlch(52.41, 53.38, 4.50°)
OKLaboklab(61.07% 0.1623 0.0114)
OKLCHoklch(61.07% 0.163 4)
XYZxyz(32.0669, 20.5100, 20.0358)
Luminance0.2051 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF5178 #51CFA8
analogous
#CF51B7 #CF5178 #CF6951
triadic
#CF5178 #78CF51 #5178CF
tetradic
#CF5178 #B7CF51 #51CFA8 #6951CF
square
#CF5178 #B7CF51 #51CFA8 #6951CF
split-complementary
#CF5178 #51CF69 #51B7CF
monochromatic
#822441 #B23159 #CF5178 #DC819D #E9B1C2

Accessibility & contrast

On white

4.12
#CF5178 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CF5178 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF5178
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF5178#FFFFFF#000000##000000
##CF51781.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A6E79
Deuteranopia (green-blind)
#8B8675
Tritanopia (blue-blind)
#E04360
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf5178;
/* rgb */ color: rgb(207, 81, 120);
/* oklch */ color: oklch(61.1% 0.163 4.0);
Tailwind
colors: {
  custom: {
    50: '#e2889e',
    500: '#cf5178',
    950: '#000000',
  },
}
SCSS
$custom: #cf5178;
$custom-light: #e2889e;
$custom-dark: #000000;
JSON
{
  "hex": "#cf5178",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 341.429,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61074,
    "c": 0.16268,
    "h": 4
  },
  "luminance": 0.20506
}

Semantic roles & 50–950 ramp

primary
#CF5178
secondary
#A4D8C8
accent
#E0B148
background
#FEF8F9
surface
#FDF0F2
border
#D5CBCC
text
#160C0E
muted
#847D7E

Preview Lab

Preview with #CF5178

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

Preview Lab → · Contrast checker → · Palette generator →

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