#CF40D1#CF40D1

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

Color values

HEX#CF40D1
RGBrgb(207, 64, 209)
HSLhsl(299, 61%, 54%)
HSVhsv(299, 69%, 82%)
CMYKcmyk(1%, 69.4%, 0%, 18%)
CIE-LABlab(53.53, 72.07, -46.25)
CIE-LCHlch(53.53, 85.63, 327.31°)
OKLaboklab(63.06% 0.2001 -0.1282)
OKLCHoklch(63.06% 0.238 327.4)
XYZxyz(39.0736, 21.5383, 62.4085)
Luminance0.2154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40D1 #42D140
analogous
#8640D1 #CF40D1 #D1408A
triadic
#CF40D1 #D1CF40 #40D1CF
tetradic
#CF40D1 #D18640 #42D140 #408AD1
square
#CF40D1 #D18640 #42D140 #408AD1
split-complementary
#CF40D1 #8AD140 #40D186
monochromatic
#781D79 #A929AB #CF40D1 #DB71DD #E8A3E9

Accessibility & contrast

On white

3.96
#CF40D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#CF40D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40D1
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40D1#FFFFFF#000000##000000
##CF40D11.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2574D5
Deuteranopia (green-blind)
#6486CD
Tritanopia (blue-blind)
#D55684
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cf40d1;
/* rgb */ color: rgb(207, 64, 209);
/* oklch */ color: oklch(63.1% 0.238 327.4);
Tailwind
colors: {
  custom: {
    50: '#e181df',
    500: '#cf40d1',
    950: '#000000',
  },
}
SCSS
$custom: #cf40d1;
$custom-light: #e181df;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40d1",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 299.172,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.63056,
    "c": 0.23762,
    "h": 327.4
  },
  "luminance": 0.21536
}

Semantic roles & 50–950 ramp

primary
#CF40D1
secondary
#98D597
accent
#E44446
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF40D1

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

Preview Lab → · Contrast checker → · Palette generator →

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