#CF51D2#CF51D2

#CF51D2 is a light, highly saturated purple. Relative luminance 0.238; OKLCH L 64.8% C 0.217 H 326.8°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#CF51D2
RGBrgb(207, 81, 210)
HSLhsl(299, 59%, 57%)
HSVhsv(299, 61%, 82%)
CMYKcmyk(1.4%, 61.4%, 0%, 17.6%)
CIE-LABlab(55.89, 65.77, -43.08)
CIE-LCHlch(55.89, 78.62, 326.77°)
OKLaboklab(64.78% 0.182 -0.1191)
OKLCHoklch(64.78% 0.217 326.8)
XYZxyz(40.3067, 23.8059, 63.4323)
Luminance0.2380 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51D2 #54D251
analogous
#8F51D2 #CF51D2 #D25194
triadic
#CF51D2 #D2CF51 #51D2CF
tetradic
#CF51D2 #D28F51 #54D251 #5194D2
square
#CF51D2 #D28F51 #54D251 #5194D2
split-complementary
#CF51D2 #94D251 #51D28F
monochromatic
#842386 #B32FB7 #CF51D2 #DC82DF #EAB2EB

Accessibility & contrast

On white

3.65
#CF51D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#CF51D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51D2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51D2#FFFFFF#000000##000000
##CF51D21.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7CD6
Deuteranopia (green-blind)
#6D8CCF
Tritanopia (blue-blind)
#D4628A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cf51d2;
/* rgb */ color: rgb(207, 81, 210);
/* oklch */ color: oklch(64.8% 0.217 326.8);
Tailwind
colors: {
  custom: {
    50: '#e18ae0',
    500: '#cf51d2',
    950: '#000000',
  },
}
SCSS
$custom: #cf51d2;
$custom-light: #e18ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51d2",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 298.605,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.64775,
    "c": 0.21748,
    "h": 326.8
  },
  "luminance": 0.23803
}

Semantic roles & 50–950 ramp

primary
#CF51D2
secondary
#A6DAA5
accent
#E24649
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CF51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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