#CF51B3#CF51B3

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

Color values

HEX#CF51B3
RGBrgb(207, 81, 179)
HSLhsl(313, 57%, 56%)
HSVhsv(313, 61%, 81%)
CMYKcmyk(0%, 60.9%, 13.5%, 18.8%)
CIE-LABlab(54.46, 60.77, -27.53)
CIE-LCHlch(54.46, 66.71, 335.63°)
OKLaboklab(63.26% 0.1783 -0.0745)
OKLCHoklch(63.26% 0.193 337.3)
XYZxyz(36.8117, 22.4080, 45.0255)
Luminance0.2240 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51B3 #51CF6D
analogous
#AC51CF #CF51B3 #CF5174
triadic
#CF51B3 #B3CF51 #51B3CF
tetradic
#CF51B3 #CFAC51 #51CF6D #5174CF
square
#CF51B3 #CFAC51 #51CF6D #5174CF
split-complementary
#CF51B3 #74CF51 #51CFAC
monochromatic
#82246D #B23195 #CF51B3 #DC81C8 #E9B1DD

Accessibility & contrast

On white

3.83
#CF51B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#CF51B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51B3
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51B3#FFFFFF#000000##000000
##CF51B31.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5476B6
Deuteranopia (green-blind)
#7B89B0
Tritanopia (blue-blind)
#D9577B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #cf51b3;
/* rgb */ color: rgb(207, 81, 179);
/* oklch */ color: oklch(63.3% 0.193 337.3);
Tailwind
colors: {
  custom: {
    50: '#e189ca',
    500: '#cf51b3',
    950: '#000000',
  },
}
SCSS
$custom: #cf51b3;
$custom-light: #e189ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51b3",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 313.333,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.6326,
    "c": 0.19327,
    "h": 337.3
  },
  "luminance": 0.22405
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF51B3

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

Preview Lab → · Contrast checker → · Palette generator →

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