#CF51BA#CF51BA

#CF51BA is a light, vivid pink. Relative luminance 0.227; OKLCH L 63.6% C 0.198 H 334.7°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#CF51BA
RGBrgb(207, 81, 186)
HSLhsl(310, 57%, 56%)
HSVhsv(310, 61%, 81%)
CMYKcmyk(0%, 60.9%, 10.1%, 18.8%)
CIE-LABlab(54.76, 61.84, -31.11)
CIE-LCHlch(54.76, 69.22, 333.30°)
OKLaboklab(63.58% 0.1795 -0.0847)
OKLCHoklch(63.58% 0.198 334.7)
XYZxyz(37.5377, 22.6984, 48.8490)
Luminance0.2270 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51BA #51CF66
analogous
#A551CF #CF51BA #CF517B
triadic
#CF51BA #BACF51 #51BACF
tetradic
#CF51BA #CFA551 #51CF66 #517BCF
square
#CF51BA #CFA551 #51CF66 #517BCF
split-complementary
#CF51BA #7BCF51 #51CFA5
monochromatic
#822472 #B2319C #CF51BA #DC81CD #E9B1E0

Accessibility & contrast

On white

3.79
#CF51BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#CF51BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51BA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51BA#FFFFFF#000000##000000
##CF51BA1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5077BD
Deuteranopia (green-blind)
#788AB7
Tritanopia (blue-blind)
#D8597E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cf51ba;
/* rgb */ color: rgb(207, 81, 186);
/* oklch */ color: oklch(63.6% 0.198 334.7);
Tailwind
colors: {
  custom: {
    50: '#e189cf',
    500: '#cf51ba',
    950: '#000000',
  },
}
SCSS
$custom: #cf51ba;
$custom-light: #e189cf;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51ba",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 310,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.63581,
    "c": 0.19843,
    "h": 334.7
  },
  "luminance": 0.22695
}

Semantic roles & 50–950 ramp

primary
#CF51BA
secondary
#A4D8AD
accent
#E06148
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160C14
muted
#847D82

Preview Lab

Preview with #CF51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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