#CF51E6#CF51E6

#CF51E6 is a light, highly saturated purple. Relative luminance 0.249; OKLCH L 65.9% C 0.234 H 321.1°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#CF51E6
RGBrgb(207, 81, 230)
HSLhsl(291, 75%, 61%)
HSVhsv(291, 65%, 90%)
CMYKcmyk(10%, 64.8%, 0%, 9.8%)
CIE-LABlab(56.94, 69.29, -52.72)
CIE-LCHlch(56.94, 87.06, 322.74°)
OKLaboklab(65.88% 0.1825 -0.1471)
OKLCHoklch(65.88% 0.234 321.1)
XYZxyz(42.9559, 24.8656, 77.3845)
Luminance0.2486 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51E6 #68E651
analogous
#8451E6 #CF51E6 #E651B2
triadic
#CF51E6 #E6CF51 #51E6CF
tetradic
#CF51E6 #E68451 #68E651 #51B2E6
square
#CF51E6 #E68451 #68E651 #51B2E6
split-complementary
#CF51E6 #B2E651 #51E684
monochromatic
#8F18A5 #BE1FDA #CF51E6 #DE87EE #EDBCF5

Accessibility & contrast

On white

3.52
#CF51E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#CF51E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51E6
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51E6#FFFFFF#000000##000000
##CF51E61.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2680EA
Deuteranopia (green-blind)
#618DE2
Tritanopia (blue-blind)
#D16A95
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #cf51e6;
/* rgb */ color: rgb(207, 81, 230);
/* oklch */ color: oklch(65.9% 0.234 321.1);
Tailwind
colors: {
  custom: {
    50: '#e18aee',
    500: '#cf51e6',
    950: '#000000',
  },
}
SCSS
$custom: #cf51e6;
$custom-light: #e18aee;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51e6",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 290.738,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.65876,
    "c": 0.23442,
    "h": 321.1
  },
  "luminance": 0.24863
}

Semantic roles & 50–950 ramp

primary
#CF51E6
secondary
#B6E5AD
accent
#D70E2D
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160D16
muted
#847D84

Preview Lab

Preview with #CF51E6

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

Preview Lab → · Contrast checker → · Palette generator →

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