#CF51B7#CF51B7

#CF51B7 is a light, vivid pink. Relative luminance 0.226; OKLCH L 63.4% C 0.196 H 335.8°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#CF51B7
RGBrgb(207, 81, 183)
HSLhsl(311, 57%, 56%)
HSVhsv(311, 61%, 81%)
CMYKcmyk(0%, 60.9%, 11.6%, 18.8%)
CIE-LABlab(54.63, 61.38, -29.58)
CIE-LCHlch(54.63, 68.13, 334.27°)
OKLaboklab(63.44% 0.179 -0.0803)
OKLCHoklch(63.44% 0.196 335.8)
XYZxyz(37.2222, 22.5721, 47.1870)
Luminance0.2257 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51B7 #51CF69
analogous
#A851CF #CF51B7 #CF5178
triadic
#CF51B7 #B7CF51 #51B7CF
tetradic
#CF51B7 #CFA851 #51CF69 #5178CF
square
#CF51B7 #CFA851 #51CF69 #5178CF
split-complementary
#CF51B7 #78CF51 #51CFA8
monochromatic
#822470 #B23199 #CF51B7 #DC81CB #E9B1DF

Accessibility & contrast

On white

3.81
#CF51B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#CF51B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51B7
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51B7#FFFFFF#000000##000000
##CF51B71.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5277BA
Deuteranopia (green-blind)
#798AB4
Tritanopia (blue-blind)
#D9587D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cf51b7;
/* rgb */ color: rgb(207, 81, 183);
/* oklch */ color: oklch(63.4% 0.196 335.8);
Tailwind
colors: {
  custom: {
    50: '#e189cd',
    500: '#cf51b7',
    950: '#000000',
  },
}
SCSS
$custom: #cf51b7;
$custom-light: #e189cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51b7",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 183
  },
  "hsl": {
    "h": 311.429,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.63442,
    "c": 0.19619,
    "h": 335.8
  },
  "luminance": 0.22569
}

Semantic roles & 50–950 ramp

primary
#CF51B7
secondary
#A4D8AE
accent
#E06548
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160C13
muted
#847D82

Preview Lab

Preview with #CF51B7

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

Preview Lab → · Contrast checker → · Palette generator →

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