#CF51E7#CF51E7

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

Color values

HEX#CF51E7
RGBrgb(207, 81, 231)
HSLhsl(290, 76%, 61%)
HSVhsv(290, 65%, 91%)
CMYKcmyk(10.4%, 64.9%, 0%, 9.4%)
CIE-LABlab(57.00, 69.47, -53.19)
CIE-LCHlch(57.00, 87.50, 322.56°)
OKLaboklab(65.93% 0.1825 -0.1485)
OKLCHoklch(65.93% 0.235 320.9)
XYZxyz(43.0967, 24.9219, 78.1262)
Luminance0.2492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51E7 #69E751
analogous
#8451E7 #CF51E7 #E751B4
triadic
#CF51E7 #E7CF51 #51E7CF
tetradic
#CF51E7 #E78451 #69E751 #51B4E7
square
#CF51E7 #E78451 #69E751 #51B4E7
split-complementary
#CF51E7 #B4E751 #51E784
monochromatic
#9017A7 #BE1EDC #CF51E7 #DE87EE #EDBDF6

Accessibility & contrast

On white

3.51
#CF51E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#CF51E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51E7
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51E7#FFFFFF#000000##000000
##CF51E71.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2480EB
Deuteranopia (green-blind)
#608DE3
Tritanopia (blue-blind)
#D16B95
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #cf51e7;
/* rgb */ color: rgb(207, 81, 231);
/* oklch */ color: oklch(65.9% 0.235 320.9);
Tailwind
colors: {
  custom: {
    50: '#e18aef',
    500: '#cf51e7',
    950: '#000000',
  },
}
SCSS
$custom: #cf51e7;
$custom-light: #e18aef;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51e7",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 290.4,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.65933,
    "c": 0.23529,
    "h": 320.9
  },
  "luminance": 0.2492
}

Semantic roles & 50–950 ramp

primary
#CF51E7
secondary
#B7E6AE
accent
#D80E2E
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160D16
muted
#847D84

Preview Lab

Preview with #CF51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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