#CF51DB#CF51DB

#CF51DB is a light, highly saturated purple. Relative luminance 0.243; OKLCH L 65.3% C 0.225 H 324.1°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#CF51DB
RGBrgb(207, 81, 219)
HSLhsl(295, 66%, 59%)
HSVhsv(295, 63%, 86%)
CMYKcmyk(5.5%, 63%, 0%, 14.1%)
CIE-LABlab(56.35, 67.33, -47.46)
CIE-LCHlch(56.35, 82.37, 324.82°)
OKLaboklab(65.26% 0.1824 -0.1318)
OKLCHoklch(65.26% 0.225 324.1)
XYZxyz(41.4596, 24.2671, 69.5043)
Luminance0.2427 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51DB #5DDB51
analogous
#8A51DB #CF51DB #DB51A2
triadic
#CF51DB #DBCF51 #51DBCF
tetradic
#CF51DB #DB8A51 #5DDB51 #51A2DB
square
#CF51DB #DB8A51 #5DDB51 #51A2DB
split-complementary
#CF51DB #A2DB51 #51DB8A
monochromatic
#891E93 #B829C6 #CF51DB #DD84E5 #EBB6F0

Accessibility & contrast

On white

3.59
#CF51DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#CF51DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51DB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51DB#FFFFFF#000000##000000
##CF51DB1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#367DDF
Deuteranopia (green-blind)
#688CD7
Tritanopia (blue-blind)
#D3668F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #cf51db;
/* rgb */ color: rgb(207, 81, 219);
/* oklch */ color: oklch(65.3% 0.225 324.1);
Tailwind
colors: {
  custom: {
    50: '#e18ae7',
    500: '#cf51db',
    950: '#000000',
  },
}
SCSS
$custom: #cf51db;
$custom-light: #e18ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51db",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 294.783,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.65259,
    "c": 0.22501,
    "h": 324.1
  },
  "luminance": 0.24265
}

Semantic roles & 50–950 ramp

primary
#CF51DB
secondary
#ADDFA9
accent
#E93F4E
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CF51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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