#CF51AB#CF51AB

#CF51AB is a light, vivid pink. Relative luminance 0.221; OKLCH L 62.9% C 0.188 H 340.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#CF51AB
RGBrgb(207, 81, 171)
HSLhsl(317, 57%, 56%)
HSVhsv(317, 61%, 81%)
CMYKcmyk(0%, 60.9%, 17.4%, 18.8%)
CIE-LABlab(54.13, 59.58, -23.38)
CIE-LCHlch(54.13, 64.01, 338.57°)
OKLaboklab(62.91% 0.1768 -0.0628)
OKLCHoklch(62.91% 0.188 340.4)
XYZxyz(36.0260, 22.0937, 40.8873)
Luminance0.2209 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51AB #51CF75
analogous
#B451CF #CF51AB #CF516C
triadic
#CF51AB #ABCF51 #51ABCF
tetradic
#CF51AB #CFB451 #51CF75 #516CCF
square
#CF51AB #CFB451 #51CF75 #516CCF
split-complementary
#CF51AB #6CCF51 #51CFB4
monochromatic
#822467 #B2318D #CF51AB #DC81C2 #E9B1D9

Accessibility & contrast

On white

3.88
#CF51AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#CF51AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51AB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51AB#FFFFFF#000000##000000
##CF51AB1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5875AE
Deuteranopia (green-blind)
#7E89A8
Tritanopia (blue-blind)
#DA5477
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cf51ab;
/* rgb */ color: rgb(207, 81, 171);
/* oklch */ color: oklch(62.9% 0.188 340.4);
Tailwind
colors: {
  custom: {
    50: '#e189c4',
    500: '#cf51ab',
    950: '#000000',
  },
}
SCSS
$custom: #cf51ab;
$custom-light: #e189c4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51ab",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 317.143,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.62909,
    "c": 0.18767,
    "h": 340.4
  },
  "luminance": 0.22091
}

Semantic roles & 50–950 ramp

primary
#CF51AB
secondary
#A4D8B3
accent
#E07348
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C12
muted
#847D81

Preview Lab

Preview with #CF51AB

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

Preview Lab → · Contrast checker → · Palette generator →

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