#CF28D4#CF28D4

#CF28D4 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.5% C 0.262 H 326.8°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CF28D4
RGBrgb(207, 40, 212)
HSLhsl(298, 68%, 49%)
HSVhsv(298, 81%, 83%)
CMYKcmyk(2.4%, 81.1%, 0%, 16.9%)
CIE-LABlab(51.31, 79.41, -51.50)
CIE-LCHlch(51.31, 94.65, 327.03°)
OKLaboklab(61.53% 0.2193 -0.1433)
OKLCHoklch(61.53% 0.262 326.8)
XYZxyz(38.3739, 19.5392, 64.0249)
Luminance0.1954 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF28D4 #2DD428
analogous
#7928D4 #CF28D4 #D42883
triadic
#CF28D4 #D4CF28 #28D4CF
tetradic
#CF28D4 #D47928 #2DD428 #2883D4
square
#CF28D4 #D47928 #2DD428 #2883D4
split-complementary
#CF28D4 #83D428 #28D479
monochromatic
#6A156D #9D1EA1 #CF28D4 #DC59E0 #E78DE9

Accessibility & contrast

On white

4.28
#CF28D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#CF28D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF28D4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF28D4#FFFFFF#000000##000000
##CF28D41.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#5881D0
Tritanopia (blue-blind)
#D54A81
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cf28d4;
/* rgb */ color: rgb(207, 40, 212);
/* oklch */ color: oklch(61.5% 0.262 326.8);
Tailwind
colors: {
  custom: {
    50: '#e278e2',
    500: '#cf28d4',
    950: '#000000',
  },
}
SCSS
$custom: #cf28d4;
$custom-light: #e278e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf28d4",
  "rgb": {
    "r": 207,
    "g": 40,
    "b": 212
  },
  "hsl": {
    "h": 298.256,
    "s": 68.254,
    "l": 49.412
  },
  "oklch": {
    "l": 0.61527,
    "c": 0.26196,
    "h": 326.8
  },
  "luminance": 0.19536
}

Semantic roles & 50–950 ramp

primary
#CF28D4
secondary
#87D484
accent
#EB3D42
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160A15
muted
#847C83

Preview Lab

Preview with #CF28D4

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

Preview Lab → · Contrast checker → · Palette generator →

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