#CF51C2#CF51C2

#CF51C2 is a light, highly saturated purple. Relative luminance 0.230; OKLCH L 64.0% C 0.205 H 331.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#CF51C2
RGBrgb(207, 81, 194)
HSLhsl(306, 57%, 56%)
HSVhsv(306, 61%, 81%)
CMYKcmyk(0%, 60.9%, 6.3%, 18.8%)
CIE-LABlab(55.12, 63.11, -35.15)
CIE-LCHlch(55.12, 72.24, 330.88°)
OKLaboklab(63.96% 0.1805 -0.0962)
OKLCHoklch(63.96% 0.205 331.9)
XYZxyz(38.4121, 23.0481, 53.4541)
Luminance0.2304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51C2 #51CF5E
analogous
#9D51CF #CF51C2 #CF5183
triadic
#CF51C2 #C2CF51 #51C2CF
tetradic
#CF51C2 #CF9D51 #51CF5E #5183CF
square
#CF51C2 #CF9D51 #51CF5E #5183CF
split-complementary
#CF51C2 #83CF51 #51CF9D
monochromatic
#822478 #B231A4 #CF51C2 #DC81D3 #E9B1E4

Accessibility & contrast

On white

3.74
#CF51C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#CF51C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51C2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51C2#FFFFFF#000000##000000
##CF51C21.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B79C5
Deuteranopia (green-blind)
#758ABF
Tritanopia (blue-blind)
#D75C82
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #cf51c2;
/* rgb */ color: rgb(207, 81, 194);
/* oklch */ color: oklch(64.0% 0.205 331.9);
Tailwind
colors: {
  custom: {
    50: '#e189d5',
    500: '#cf51c2',
    950: '#000000',
  },
}
SCSS
$custom: #cf51c2;
$custom-light: #e189d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51c2",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 306.19,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.63963,
    "c": 0.20456,
    "h": 331.9
  },
  "luminance": 0.23045
}

Semantic roles & 50–950 ramp

primary
#CF51C2
secondary
#A4D8A9
accent
#E05748
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160C14
muted
#847D83

Preview Lab

Preview with #CF51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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