#CF51D8#CF51D8

#CF51D8 is a light, highly saturated purple. Relative luminance 0.241; OKLCH L 65.1% C 0.222 H 325.0°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#CF51D8
RGBrgb(207, 81, 216)
HSLhsl(296, 63%, 58%)
HSVhsv(296, 63%, 85%)
CMYKcmyk(4.2%, 62.5%, 0%, 15.3%)
CIE-LABlab(56.20, 66.80, -46.01)
CIE-LCHlch(56.20, 81.11, 325.44°)
OKLaboklab(65.1% 0.1823 -0.1276)
OKLCHoklch(65.1% 0.222 325)
XYZxyz(41.0683, 24.1106, 67.4431)
Luminance0.2411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51D8 #5AD851
analogous
#8B51D8 #CF51D8 #D8519D
triadic
#CF51D8 #D8CF51 #51D8CF
tetradic
#CF51D8 #D88B51 #5AD851 #519DD8
square
#CF51D8 #D88B51 #5AD851 #519DD8
split-complementary
#CF51D8 #9DD851 #51D88B
monochromatic
#87208F #B72BC1 #CF51D8 #DD83E3 #EBB5EE

Accessibility & contrast

On white

3.61
#CF51D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#CF51D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51D8
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51D8#FFFFFF#000000##000000
##CF51D81.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#397DDC
Deuteranopia (green-blind)
#6A8CD4
Tritanopia (blue-blind)
#D3658E
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #cf51d8;
/* rgb */ color: rgb(207, 81, 216);
/* oklch */ color: oklch(65.1% 0.222 325.0);
Tailwind
colors: {
  custom: {
    50: '#e18ae4',
    500: '#cf51d8',
    950: '#000000',
  },
}
SCSS
$custom: #cf51d8;
$custom-light: #e18ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51d8",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 296,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.65096,
    "c": 0.22248,
    "h": 325
  },
  "luminance": 0.24108
}

Semantic roles & 50–950 ramp

primary
#CF51D8
secondary
#ABDDA8
accent
#E6414C
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CF51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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