#CF51E2#CF51E2

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

Color values

HEX#CF51E2
RGBrgb(207, 81, 226)
HSLhsl(292, 71%, 60%)
HSVhsv(292, 64%, 89%)
CMYKcmyk(8.4%, 64.2%, 0%, 11.4%)
CIE-LABlab(56.73, 68.57, -50.81)
CIE-LCHlch(56.73, 85.35, 323.46°)
OKLaboklab(65.65% 0.1825 -0.1416)
OKLCHoklch(65.65% 0.231 322.2)
XYZxyz(42.4006, 24.6435, 74.4601)
Luminance0.2464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51E2 #64E251
analogous
#8651E2 #CF51E2 #E251AC
triadic
#CF51E2 #E2CF51 #51E2CF
tetradic
#CF51E2 #E28651 #64E251 #51ACE2
square
#CF51E2 #E28651 #64E251 #51ACE2
split-complementary
#CF51E2 #ACE251 #51E286
monochromatic
#8D1A9E #BC23D3 #CF51E2 #DD85EB #ECBAF3

Accessibility & contrast

On white

3.54
#CF51E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#CF51E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51E2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51E2#FFFFFF#000000##000000
##CF51E21.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7FE6
Deuteranopia (green-blind)
#648DDE
Tritanopia (blue-blind)
#D26993
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cf51e2;
/* rgb */ color: rgb(207, 81, 226);
/* oklch */ color: oklch(65.6% 0.231 322.2);
Tailwind
colors: {
  custom: {
    50: '#e18aec',
    500: '#cf51e2',
    950: '#000000',
  },
}
SCSS
$custom: #cf51e2;
$custom-light: #e18aec;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51e2",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 292.138,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.65648,
    "c": 0.23098,
    "h": 322.2
  },
  "luminance": 0.24641
}

Semantic roles & 50–950 ramp

primary
#CF51E2
secondary
#B3E3AC
accent
#D3122B
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CF51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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