#CF51A2#CF51A2

#CF51A2 is a light, vivid pink. Relative luminance 0.218; OKLCH L 62.5% C 0.182 H 344.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#CF51A2
RGBrgb(207, 81, 162)
HSLhsl(321, 57%, 56%)
HSVhsv(321, 61%, 81%)
CMYKcmyk(0%, 60.9%, 21.7%, 18.8%)
CIE-LABlab(53.77, 58.31, -18.66)
CIE-LCHlch(53.77, 61.22, 342.25°)
OKLaboklab(62.53% 0.1749 -0.0496)
OKLCHoklch(62.53% 0.182 344.2)
XYZxyz(35.1972, 21.7621, 36.5222)
Luminance0.2176 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51A2 #51CF7E
analogous
#BD51CF #CF51A2 #CF5163
triadic
#CF51A2 #A2CF51 #51A2CF
tetradic
#CF51A2 #CFBD51 #51CF7E #5163CF
square
#CF51A2 #CFBD51 #51CF7E #5163CF
split-complementary
#CF51A2 #63CF51 #51CFBD
monochromatic
#822460 #B23184 #CF51A2 #DC81BC #E9B1D5

Accessibility & contrast

On white

3.92
#CF51A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#CF51A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51A2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51A2#FFFFFF#000000##000000
##CF51A21.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C73A4
Deuteranopia (green-blind)
#80889F
Tritanopia (blue-blind)
#DC5072
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cf51a2;
/* rgb */ color: rgb(207, 81, 162);
/* oklch */ color: oklch(62.5% 0.182 344.2);
Tailwind
colors: {
  custom: {
    50: '#e189bd',
    500: '#cf51a2',
    950: '#000000',
  },
}
SCSS
$custom: #cf51a2;
$custom-light: #e189bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51a2",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 321.429,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.62534,
    "c": 0.18179,
    "h": 344.2
  },
  "luminance": 0.21759
}

Semantic roles & 50–950 ramp

primary
#CF51A2
secondary
#A4D8B7
accent
#E07E48
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C12
muted
#847D81

Preview Lab

Preview with #CF51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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