#CF40D3#CF40D3

#CF40D3 is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 63.2% C 0.239 H 326.8°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#CF40D3
RGBrgb(207, 64, 211)
HSLhsl(298, 63%, 54%)
HSVhsv(298, 70%, 83%)
CMYKcmyk(1.9%, 69.7%, 0%, 17.3%)
CIE-LABlab(53.64, 72.39, -47.22)
CIE-LCHlch(53.64, 86.43, 326.88°)
OKLaboklab(63.17% 0.2001 -0.131)
OKLCHoklch(63.17% 0.239 326.8)
XYZxyz(39.3227, 21.6380, 63.7208)
Luminance0.2163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40D3 #44D340
analogous
#8640D3 #CF40D3 #D3408E
triadic
#CF40D3 #D3CF40 #40D3CF
tetradic
#CF40D3 #D38640 #44D340 #408ED3
square
#CF40D3 #D38640 #44D340 #408ED3
split-complementary
#CF40D3 #8ED340 #40D386
monochromatic
#791D7C #AA28AE #CF40D3 #DC72DE #E8A3EA

Accessibility & contrast

On white

3.94
#CF40D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#CF40D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40D3
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40D3#FFFFFF#000000##000000
##CF40D31.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2175D7
Deuteranopia (green-blind)
#6386CF
Tritanopia (blue-blind)
#D55785
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cf40d3;
/* rgb */ color: rgb(207, 64, 211);
/* oklch */ color: oklch(63.2% 0.239 326.8);
Tailwind
colors: {
  custom: {
    50: '#e282e1',
    500: '#cf40d3',
    950: '#000000',
  },
}
SCSS
$custom: #cf40d3;
$custom-light: #e282e1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40d3",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 298.367,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.63167,
    "c": 0.23916,
    "h": 326.8
  },
  "luminance": 0.21635
}

Semantic roles & 50–950 ramp

primary
#CF40D3
secondary
#9AD798
accent
#E64247
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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