#CF51F9#CF51F9

#CF51F9 is a light, highly saturated purple. Relative luminance 0.260; OKLCH L 67.0% C 0.251 H 316.4°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#CF51F9
RGBrgb(207, 81, 249)
HSLhsl(285, 93%, 65%)
HSVhsv(285, 67%, 98%)
CMYKcmyk(16.9%, 67.5%, 0%, 2.4%)
CIE-LABlab(58.03, 72.82, -61.58)
CIE-LCHlch(58.03, 95.37, 319.78°)
OKLaboklab(67% 0.1819 -0.173)
OKLCHoklch(67% 0.251 316.4)
XYZxyz(45.7708, 25.9916, 92.2100)
Luminance0.2599 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51F9 #7BF951
analogous
#7B51F9 #CF51F9 #F951CF
triadic
#CF51F9 #F9CF51 #51F9CF
tetradic
#CF51F9 #F97B51 #7BF951 #51CFF9
square
#CF51F9 #F97B51 #7BF951 #51CFF9
split-complementary
#CF51F9 #CFF951 #51F97B
monochromatic
#9807C9 #BF16F7 #CF51F9 #DF8CFB #F0C7FD

Accessibility & contrast

On white

3.39
#CF51F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#CF51F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51F9
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51F9#FFFFFF#000000##000000
##CF51F91.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FE
Deuteranopia (green-blind)
#528FF5
Tritanopia (blue-blind)
#CD729F
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #cf51f9;
/* rgb */ color: rgb(207, 81, 249);
/* oklch */ color: oklch(67.0% 0.251 316.4);
Tailwind
colors: {
  custom: {
    50: '#e28bfc',
    500: '#cf51f9',
    950: '#000000',
  },
}
SCSS
$custom: #cf51f9;
$custom-light: #e28bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51f9",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 249
  },
  "hsl": {
    "h": 285,
    "s": 93.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.67004,
    "c": 0.25104,
    "h": 316.4
  },
  "luminance": 0.2599
}

Semantic roles & 50–950 ramp

primary
#CF51F9
secondary
#C4F0B6
accent
#E60039
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#160D18
muted
#847E86

Preview Lab

Preview with #CF51F9

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

Preview Lab → · Contrast checker → · Palette generator →

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