#CF51E5#CF51E5

#CF51E5 is a light, highly saturated purple. Relative luminance 0.248; OKLCH L 65.8% C 0.234 H 321.4°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#CF51E5
RGBrgb(207, 81, 229)
HSLhsl(291, 74%, 61%)
HSVhsv(291, 65%, 90%)
CMYKcmyk(9.6%, 64.6%, 0%, 10.2%)
CIE-LABlab(56.89, 69.11, -52.24)
CIE-LCHlch(56.89, 86.63, 322.91°)
OKLaboklab(65.82% 0.1825 -0.1457)
OKLCHoklch(65.82% 0.234 321.4)
XYZxyz(42.8158, 24.8096, 76.6470)
Luminance0.2481 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51E5 #67E551
analogous
#8551E5 #CF51E5 #E551B1
triadic
#CF51E5 #E5CF51 #51E5CF
tetradic
#CF51E5 #E58551 #67E551 #51B1E5
square
#CF51E5 #E58551 #67E551 #51B1E5
split-complementary
#CF51E5 #B1E551 #51E585
monochromatic
#8F18A3 #BD20D8 #CF51E5 #DE86ED #ECBBF5

Accessibility & contrast

On white

3.52
#CF51E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#CF51E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51E5
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51E5#FFFFFF#000000##000000
##CF51E51.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#287FE9
Deuteranopia (green-blind)
#628DE1
Tritanopia (blue-blind)
#D16A94
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #cf51e5;
/* rgb */ color: rgb(207, 81, 229);
/* oklch */ color: oklch(65.8% 0.234 321.4);
Tailwind
colors: {
  custom: {
    50: '#e18aee',
    500: '#cf51e5',
    950: '#000000',
  },
}
SCSS
$custom: #cf51e5;
$custom-light: #e18aee;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51e5",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 291.081,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.65819,
    "c": 0.23356,
    "h": 321.4
  },
  "luminance": 0.24807
}

Semantic roles & 50–950 ramp

primary
#CF51E5
secondary
#B5E5AD
accent
#D60F2D
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160D16
muted
#847D84

Preview Lab

Preview with #CF51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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