#CF51A5#CF51A5

#CF51A5 is a light, vivid pink. Relative luminance 0.219; OKLCH L 62.7% C 0.184 H 342.9°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#CF51A5
RGBrgb(207, 81, 165)
HSLhsl(320, 57%, 56%)
HSVhsv(320, 61%, 81%)
CMYKcmyk(0%, 60.9%, 20.3%, 18.8%)
CIE-LABlab(53.89, 58.72, -20.24)
CIE-LCHlch(53.89, 62.12, 340.98°)
OKLaboklab(62.66% 0.1756 -0.054)
OKLCHoklch(62.66% 0.184 342.9)
XYZxyz(35.4671, 21.8701, 37.9434)
Luminance0.2187 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51A5 #51CF7B
analogous
#BA51CF #CF51A5 #CF5166
triadic
#CF51A5 #A5CF51 #51A5CF
tetradic
#CF51A5 #CFBA51 #51CF7B #5166CF
square
#CF51A5 #CFBA51 #51CF7B #5166CF
split-complementary
#CF51A5 #66CF51 #51CFBA
monochromatic
#822462 #B23187 #CF51A5 #DC81BE #E9B1D7

Accessibility & contrast

On white

3.91
#CF51A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#CF51A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51A5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51A5#FFFFFF#000000##000000
##CF51A51.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B74A8
Deuteranopia (green-blind)
#8088A2
Tritanopia (blue-blind)
#DB5174
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cf51a5;
/* rgb */ color: rgb(207, 81, 165);
/* oklch */ color: oklch(62.7% 0.184 342.9);
Tailwind
colors: {
  custom: {
    50: '#e189bf',
    500: '#cf51a5',
    950: '#000000',
  },
}
SCSS
$custom: #cf51a5;
$custom-light: #e189bf;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51a5",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 165
  },
  "hsl": {
    "h": 320,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.62656,
    "c": 0.1837,
    "h": 342.9
  },
  "luminance": 0.21867
}

Semantic roles & 50–950 ramp

primary
#CF51A5
secondary
#A4D8B5
accent
#E07B48
background
#FEF8FB
surface
#FCF0F7
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CF51A5

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

Preview Lab → · Contrast checker → · Palette generator →

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