#CF51F2#CF51F2

#CF51F2 is a light, highly saturated purple. Relative luminance 0.256; OKLCH L 66.6% C 0.245 H 318.1°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#CF51F2
RGBrgb(207, 81, 242)
HSLhsl(287, 86%, 63%)
HSVhsv(287, 67%, 95%)
CMYKcmyk(14.5%, 66.5%, 0%, 5.1%)
CIE-LABlab(57.62, 71.50, -58.35)
CIE-LCHlch(57.62, 92.29, 320.78°)
OKLaboklab(66.58% 0.1822 -0.1636)
OKLCHoklch(66.58% 0.245 318.1)
XYZxyz(44.6993, 25.5630, 86.5668)
Luminance0.2556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51F2 #74F251
analogous
#7F51F2 #CF51F2 #F251C4
triadic
#CF51F2 #F2CF51 #51F2CF
tetradic
#CF51F2 #F27F51 #74F251 #51C4F2
square
#CF51F2 #F27F51 #74F251 #51C4F2
split-complementary
#CF51F2 #C4F251 #51F27F
monochromatic
#950EBB #BF18EE #CF51F2 #DF8AF6 #EEC3FB

Accessibility & contrast

On white

3.44
#CF51F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#CF51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51F2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51F2#FFFFFF#000000##000000
##CF51F21.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F7
Deuteranopia (green-blind)
#588EEE
Tritanopia (blue-blind)
#CE6F9B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #cf51f2;
/* rgb */ color: rgb(207, 81, 242);
/* oklch */ color: oklch(66.6% 0.245 318.1);
Tailwind
colors: {
  custom: {
    50: '#e28bf7',
    500: '#cf51f2',
    950: '#000000',
  },
}
SCSS
$custom: #cf51f2;
$custom-light: #e28bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51f2",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 286.957,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.66579,
    "c": 0.24487,
    "h": 318.1
  },
  "luminance": 0.25561
}

Semantic roles & 50–950 ramp

primary
#CF51F2
secondary
#BFECB3
accent
#E30334
background
#FEF8FF
surface
#FDF0FF
border
#D5CBD7
text
#160D17
muted
#847D85

Preview Lab

Preview with #CF51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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