#CF40D2#CF40D2

#CF40D2 is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 63.1% C 0.238 H 327.1°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#CF40D2
RGBrgb(207, 64, 210)
HSLhsl(299, 62%, 54%)
HSVhsv(299, 70%, 82%)
CMYKcmyk(1.4%, 69.5%, 0%, 17.6%)
CIE-LABlab(53.59, 72.23, -46.73)
CIE-LCHlch(53.59, 86.03, 327.10°)
OKLaboklab(63.11% 0.2001 -0.1296)
OKLCHoklch(63.11% 0.238 327.1)
XYZxyz(39.1977, 21.5880, 63.0626)
Luminance0.2158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40D2 #43D240
analogous
#8640D2 #CF40D2 #D2408C
triadic
#CF40D2 #D2CF40 #40D2CF
tetradic
#CF40D2 #D28640 #43D240 #408CD2
square
#CF40D2 #D28640 #43D240 #408CD2
split-complementary
#CF40D2 #8CD240 #40D286
monochromatic
#791D7B #AA29AC #CF40D2 #DB72DE #E8A3E9

Accessibility & contrast

On white

3.95
#CF40D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#CF40D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40D2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40D2#FFFFFF#000000##000000
##CF40D21.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2374D6
Deuteranopia (green-blind)
#6486CE
Tritanopia (blue-blind)
#D55685
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cf40d2;
/* rgb */ color: rgb(207, 64, 210);
/* oklch */ color: oklch(63.1% 0.238 327.1);
Tailwind
colors: {
  custom: {
    50: '#e281e0',
    500: '#cf40d2',
    950: '#000000',
  },
}
SCSS
$custom: #cf40d2;
$custom-light: #e281e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40d2",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 298.767,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.63112,
    "c": 0.2384,
    "h": 327.1
  },
  "luminance": 0.21585
}

Semantic roles & 50–950 ramp

primary
#CF40D2
secondary
#99D698
accent
#E54346
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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