#CF56F2#CF56F2

#CF56F2 is a light, highly saturated purple. Relative luminance 0.263; OKLCH L 67.1% C 0.239 H 317.8°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#CF56F2
RGBrgb(207, 86, 242)
HSLhsl(287, 86%, 64%)
HSVhsv(287, 64%, 95%)
CMYKcmyk(14.5%, 64.5%, 0%, 5.1%)
CIE-LABlab(58.35, 69.46, -57.18)
CIE-LCHlch(58.35, 89.96, 320.54°)
OKLaboklab(67.11% 0.1769 -0.1602)
OKLCHoklch(67.11% 0.239 317.8)
XYZxyz(45.0847, 26.3337, 86.6952)
Luminance0.2633 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF56F2 #79F256
analogous
#8156F2 #CF56F2 #F256C7
triadic
#CF56F2 #F2CF56 #56F2CF
tetradic
#CF56F2 #F28156 #79F256 #56C7F2
square
#CF56F2 #F28156 #79F256 #56C7F2
split-complementary
#CF56F2 #C7F256 #56F281
monochromatic
#970FBF #BF1DEE #CF56F2 #DF8FF6 #EFC8FB

Accessibility & contrast

On white

3.35
#CF56F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#CF56F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF56F2
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF56F2#FFFFFF#000000##000000
##CF56F21.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B85F7
Deuteranopia (green-blind)
#5C90EE
Tritanopia (blue-blind)
#CE729D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #cf56f2;
/* rgb */ color: rgb(207, 86, 242);
/* oklch */ color: oklch(67.1% 0.239 317.8);
Tailwind
colors: {
  custom: {
    50: '#e18df7',
    500: '#cf56f2',
    950: '#000000',
  },
}
SCSS
$custom: #cf56f2;
$custom-light: #e18df7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf56f2",
  "rgb": {
    "r": 207,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 286.538,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.67106,
    "c": 0.23863,
    "h": 317.8
  },
  "luminance": 0.26332
}

Semantic roles & 50–950 ramp

primary
#CF56F2
secondary
#C3EDB7
accent
#E20335
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CF56F2

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

Preview Lab → · Contrast checker → · Palette generator →

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