#CF51B2#CF51B2

#CF51B2 is a light, vivid pink. Relative luminance 0.224; OKLCH L 63.2% C 0.193 H 337.7°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#CF51B2
RGBrgb(207, 81, 178)
HSLhsl(314, 57%, 56%)
HSVhsv(314, 61%, 81%)
CMYKcmyk(0%, 60.9%, 14%, 18.8%)
CIE-LABlab(54.41, 60.62, -27.01)
CIE-LCHlch(54.41, 66.36, 335.98°)
OKLaboklab(63.22% 0.1782 -0.073)
OKLCHoklch(63.22% 0.193 337.7)
XYZxyz(36.7110, 22.3677, 44.4948)
Luminance0.2236 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51B2 #51CF6E
analogous
#AD51CF #CF51B2 #CF5173
triadic
#CF51B2 #B2CF51 #51B2CF
tetradic
#CF51B2 #CFAD51 #51CF6E #5173CF
square
#CF51B2 #CFAD51 #51CF6E #5173CF
split-complementary
#CF51B2 #73CF51 #51CFAD
monochromatic
#82246C #B23194 #CF51B2 #DC81C7 #E9B1DC

Accessibility & contrast

On white

3.84
#CF51B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#CF51B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51B2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51B2#FFFFFF#000000##000000
##CF51B21.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5576B5
Deuteranopia (green-blind)
#7B89AF
Tritanopia (blue-blind)
#DA567A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cf51b2;
/* rgb */ color: rgb(207, 81, 178);
/* oklch */ color: oklch(63.2% 0.193 337.7);
Tailwind
colors: {
  custom: {
    50: '#e189c9',
    500: '#cf51b2',
    950: '#000000',
  },
}
SCSS
$custom: #cf51b2;
$custom-light: #e189c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51b2",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 313.81,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.63215,
    "c": 0.19255,
    "h": 337.7
  },
  "luminance": 0.22365
}

Semantic roles & 50–950 ramp

primary
#CF51B2
secondary
#A4D8B0
accent
#E06B48
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160C13
muted
#847D82

Preview Lab

Preview with #CF51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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