#CF51BC#CF51BC

#CF51BC is a light, vivid purple. Relative luminance 0.228; OKLCH L 63.7% C 0.200 H 334.0°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#CF51BC
RGBrgb(207, 81, 188)
HSLhsl(309, 57%, 56%)
HSVhsv(309, 61%, 81%)
CMYKcmyk(0%, 60.9%, 9.2%, 18.8%)
CIE-LABlab(54.85, 62.15, -32.12)
CIE-LCHlch(54.85, 69.96, 332.67°)
OKLaboklab(63.68% 0.1797 -0.0876)
OKLCHoklch(63.68% 0.2 334)
XYZxyz(37.7518, 22.7840, 49.9766)
Luminance0.2278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51BC #51CF64
analogous
#A351CF #CF51BC #CF517D
triadic
#CF51BC #BCCF51 #51BCCF
tetradic
#CF51BC #CFA351 #51CF64 #517DCF
square
#CF51BC #CFA351 #51CF64 #517DCF
split-complementary
#CF51BC #7DCF51 #51CFA3
monochromatic
#822474 #B2319E #CF51BC #DC81CE #E9B1E1

Accessibility & contrast

On white

3.78
#CF51BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#CF51BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51BC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51BC#FFFFFF#000000##000000
##CF51BC1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F77BF
Deuteranopia (green-blind)
#778AB9
Tritanopia (blue-blind)
#D85A7F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cf51bc;
/* rgb */ color: rgb(207, 81, 188);
/* oklch */ color: oklch(63.7% 0.200 334.0);
Tailwind
colors: {
  custom: {
    50: '#e189d0',
    500: '#cf51bc',
    950: '#000000',
  },
}
SCSS
$custom: #cf51bc;
$custom-light: #e189d0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51bc",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 309.048,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.63675,
    "c": 0.19994,
    "h": 334
  },
  "luminance": 0.22781
}

Semantic roles & 50–950 ramp

primary
#CF51BC
secondary
#A4D8AC
accent
#E05F48
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160C14
muted
#847D82

Preview Lab

Preview with #CF51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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