#CF51D5#CF51D5

#CF51D5 is a light, highly saturated purple. Relative luminance 0.240; OKLCH L 64.9% C 0.220 H 325.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#CF51D5
RGBrgb(207, 81, 213)
HSLhsl(297, 61%, 58%)
HSVhsv(297, 62%, 84%)
CMYKcmyk(2.8%, 62%, 0%, 16.5%)
CIE-LABlab(56.04, 66.28, -44.55)
CIE-LCHlch(56.04, 79.86, 326.09°)
OKLaboklab(64.94% 0.1821 -0.1233)
OKLCHoklch(64.94% 0.22 325.9)
XYZxyz(40.6840, 23.9568, 65.4191)
Luminance0.2395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51D5 #57D551
analogous
#8D51D5 #CF51D5 #D55199
triadic
#CF51D5 #D5CF51 #51D5CF
tetradic
#CF51D5 #D58D51 #57D551 #5199D5
square
#CF51D5 #D58D51 #57D551 #5199D5
split-complementary
#CF51D5 #99D551 #51D58D
monochromatic
#85218A #B52DBC #CF51D5 #DD82E1 #EAB4ED

Accessibility & contrast

On white

3.63
#CF51D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#CF51D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51D5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51D5#FFFFFF#000000##000000
##CF51D51.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C7CD9
Deuteranopia (green-blind)
#6B8CD1
Tritanopia (blue-blind)
#D4638C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cf51d5;
/* rgb */ color: rgb(207, 81, 213);
/* oklch */ color: oklch(64.9% 0.220 325.9);
Tailwind
colors: {
  custom: {
    50: '#e18ae2',
    500: '#cf51d5',
    950: '#000000',
  },
}
SCSS
$custom: #cf51d5;
$custom-light: #e18ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51d5",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 297.273,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.64935,
    "c": 0.21997,
    "h": 325.9
  },
  "luminance": 0.23954
}

Semantic roles & 50–950 ramp

primary
#CF51D5
secondary
#A9DBA6
accent
#E4444B
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CF51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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