#CF51C8#CF51C8

#CF51C8 is a light, highly saturated purple. Relative luminance 0.233; OKLCH L 64.3% C 0.209 H 329.9°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#CF51C8
RGBrgb(207, 81, 200)
HSLhsl(303, 57%, 56%)
HSVhsv(303, 61%, 81%)
CMYKcmyk(0%, 60.9%, 3.4%, 18.8%)
CIE-LABlab(55.40, 64.09, -38.15)
CIE-LCHlch(55.40, 74.58, 329.24°)
OKLaboklab(64.26% 0.1812 -0.1049)
OKLCHoklch(64.26% 0.209 329.9)
XYZxyz(39.0996, 23.3231, 57.0748)
Luminance0.2332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51C8 #51CF58
analogous
#9751CF #CF51C8 #CF5189
triadic
#CF51C8 #C8CF51 #51C8CF
tetradic
#CF51C8 #CF9751 #51CF58 #5189CF
square
#CF51C8 #CF9751 #51CF58 #5189CF
split-complementary
#CF51C8 #89CF51 #51CF97
monochromatic
#82247D #B231AB #CF51C8 #DC81D7 #E9B1E6

Accessibility & contrast

On white

3.71
#CF51C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#CF51C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51C8
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51C8#FFFFFF#000000##000000
##CF51C81.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#477ACC
Deuteranopia (green-blind)
#728BC5
Tritanopia (blue-blind)
#D65E85
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #cf51c8;
/* rgb */ color: rgb(207, 81, 200);
/* oklch */ color: oklch(64.3% 0.209 329.9);
Tailwind
colors: {
  custom: {
    50: '#e18ad9',
    500: '#cf51c8',
    950: '#000000',
  },
}
SCSS
$custom: #cf51c8;
$custom-light: #e18ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51c8",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 303.333,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.64261,
    "c": 0.20932,
    "h": 329.9
  },
  "luminance": 0.2332
}

Semantic roles & 50–950 ramp

primary
#CF51C8
secondary
#A4D8A7
accent
#E05048
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #CF51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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