#CF51E1#CF51E1

#CF51E1 is a light, highly saturated purple. Relative luminance 0.246; OKLCH L 65.6% C 0.230 H 322.5°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#CF51E1
RGBrgb(207, 81, 225)
HSLhsl(293, 71%, 60%)
HSVhsv(293, 64%, 88%)
CMYKcmyk(8%, 64%, 0%, 11.8%)
CIE-LABlab(56.67, 68.39, -50.34)
CIE-LCHlch(56.67, 84.92, 323.65°)
OKLaboklab(65.59% 0.1825 -0.1402)
OKLCHoklch(65.59% 0.23 322.5)
XYZxyz(42.2638, 24.5888, 73.7395)
Luminance0.2459 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51E1 #63E151
analogous
#8751E1 #CF51E1 #E151AB
triadic
#CF51E1 #E1CF51 #51E1CF
tetradic
#CF51E1 #E18751 #63E151 #51ABE1
square
#CF51E1 #E18751 #63E151 #51ABE1
split-complementary
#CF51E1 #ABE151 #51E187
monochromatic
#8C1B9D #BB24D1 #CF51E1 #DD85EA #ECB9F3

Accessibility & contrast

On white

3.55
#CF51E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#CF51E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51E1
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51E1#FFFFFF#000000##000000
##CF51E11.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E7FE5
Deuteranopia (green-blind)
#648DDD
Tritanopia (blue-blind)
#D26892
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cf51e1;
/* rgb */ color: rgb(207, 81, 225);
/* oklch */ color: oklch(65.6% 0.230 322.5);
Tailwind
colors: {
  custom: {
    50: '#e18aeb',
    500: '#cf51e1',
    950: '#000000',
  },
}
SCSS
$custom: #cf51e1;
$custom-light: #e18aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51e1",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 292.5,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.65592,
    "c": 0.23013,
    "h": 322.5
  },
  "luminance": 0.24586
}

Semantic roles & 50–950 ramp

primary
#CF51E1
secondary
#B2E3AB
accent
#ED3A51
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CF51E1

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

Preview Lab → · Contrast checker → · Palette generator →

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