#CF40C7#CF40C7

#CF40C7 is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.5% C 0.230 H 330.3°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#CF40C7
RGBrgb(207, 64, 199)
HSLhsl(303, 60%, 53%)
HSVhsv(303, 69%, 81%)
CMYKcmyk(0%, 69.1%, 3.9%, 18.8%)
CIE-LABlab(53.01, 70.46, -41.34)
CIE-LCHlch(53.01, 81.69, 329.60°)
OKLaboklab(62.51% 0.1998 -0.1139)
OKLCHoklch(62.51% 0.23 330.3)
XYZxyz(37.8742, 21.0586, 56.0917)
Luminance0.2106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40C7 #40CF48
analogous
#9040CF #CF40C7 #CF407F
triadic
#CF40C7 #C7CF40 #40C7CF
tetradic
#CF40C7 #CF9040 #40CF48 #407FCF
square
#CF40C7 #CF9040 #40CF48 #407FCF
split-complementary
#CF40C7 #7FCF40 #40CF90
monochromatic
#771E72 #A82AA1 #CF40C7 #DB71D5 #E8A2E4

Accessibility & contrast

On white

4.03
#CF40C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#CF40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40C7
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40C7#FFFFFF#000000##000000
##CF40C71.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3272CB
Deuteranopia (green-blind)
#6A85C3
Tritanopia (blue-blind)
#D7517F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cf40c7;
/* rgb */ color: rgb(207, 64, 199);
/* oklch */ color: oklch(62.5% 0.230 330.3);
Tailwind
colors: {
  custom: {
    50: '#e181d8',
    500: '#cf40c7',
    950: '#000000',
  },
}
SCSS
$custom: #cf40c7;
$custom-light: #e181d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40c7",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 303.357,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62514,
    "c": 0.23003,
    "h": 330.3
  },
  "luminance": 0.21056
}

Semantic roles & 50–950 ramp

primary
#CF40C7
secondary
#97D49A
accent
#E34E45
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CF40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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