#CF40D9#CF40D9

#CF40D9 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.5% C 0.244 H 325.1°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#CF40D9
RGBrgb(207, 64, 217)
HSLhsl(296, 67%, 55%)
HSVhsv(296, 71%, 85%)
CMYKcmyk(4.6%, 70.5%, 0%, 14.9%)
CIE-LABlab(53.97, 73.39, -50.12)
CIE-LCHlch(53.97, 88.86, 325.67°)
OKLaboklab(63.51% 0.2001 -0.1394)
OKLCHoklch(63.51% 0.244 325.1)
XYZxyz(40.0890, 21.9445, 67.7564)
Luminance0.2194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40D9 #4AD940
analogous
#8240D9 #CF40D9 #D94097
triadic
#CF40D9 #D9CF40 #40D9CF
tetradic
#CF40D9 #D98240 #4AD940 #4097D9
square
#CF40D9 #D98240 #4AD940 #4097D9
split-complementary
#CF40D9 #97D940 #40D982
monochromatic
#7D1A84 #AE24B7 #CF40D9 #DC73E3 #E9A6ED

Accessibility & contrast

On white

3.90
#CF40D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#CF40D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40D9
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40D9#FFFFFF#000000##000000
##CF40D91.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1476DD
Deuteranopia (green-blind)
#5F87D5
Tritanopia (blue-blind)
#D45A89
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cf40d9;
/* rgb */ color: rgb(207, 64, 217);
/* oklch */ color: oklch(63.5% 0.244 325.1);
Tailwind
colors: {
  custom: {
    50: '#e282e5',
    500: '#cf40d9',
    950: '#000000',
  },
}
SCSS
$custom: #cf40d9;
$custom-light: #e282e5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40d9",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 296.078,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63507,
    "c": 0.24383,
    "h": 325.1
  },
  "luminance": 0.21942
}

Semantic roles & 50–950 ramp

primary
#CF40D9
secondary
#9FDA9A
accent
#EA3E49
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CF40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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