#CF51A8#CF51A8

#CF51A8 is a light, vivid pink. Relative luminance 0.220; OKLCH L 62.8% C 0.186 H 341.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#CF51A8
RGBrgb(207, 81, 168)
HSLhsl(319, 57%, 56%)
HSVhsv(319, 61%, 81%)
CMYKcmyk(0%, 60.9%, 18.8%, 18.8%)
CIE-LABlab(54.01, 59.15, -21.82)
CIE-LCHlch(54.01, 63.05, 339.75°)
OKLaboklab(62.78% 0.1762 -0.0584)
OKLCHoklch(62.78% 0.186 341.7)
XYZxyz(35.7433, 21.9806, 39.3984)
Luminance0.2198 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51A8 #51CF78
analogous
#B751CF #CF51A8 #CF5169
triadic
#CF51A8 #A8CF51 #51A8CF
tetradic
#CF51A8 #CFB751 #51CF78 #5169CF
square
#CF51A8 #CFB751 #51CF78 #5169CF
split-complementary
#CF51A8 #69CF51 #51CFB7
monochromatic
#822465 #B2318A #CF51A8 #DC81C0 #E9B1D8

Accessibility & contrast

On white

3.89
#CF51A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#CF51A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51A8
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51A8#FFFFFF#000000##000000
##CF51A81.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A74AB
Deuteranopia (green-blind)
#7F89A5
Tritanopia (blue-blind)
#DB5375
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cf51a8;
/* rgb */ color: rgb(207, 81, 168);
/* oklch */ color: oklch(62.8% 0.186 341.7);
Tailwind
colors: {
  custom: {
    50: '#e189c2',
    500: '#cf51a8',
    950: '#000000',
  },
}
SCSS
$custom: #cf51a8;
$custom-light: #e189c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51a8",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 318.571,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.62781,
    "c": 0.18565,
    "h": 341.7
  },
  "luminance": 0.21977
}

Semantic roles & 50–950 ramp

primary
#CF51A8
secondary
#A4D8B4
accent
#E07748
background
#FEF8FB
surface
#FCF0F7
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CF51A8

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

Preview Lab → · Contrast checker → · Palette generator →

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