#CF40C9#CF40C9

#CF40C9 is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.6% C 0.232 H 329.7°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#CF40C9
RGBrgb(207, 64, 201)
HSLhsl(303, 60%, 53%)
HSVhsv(303, 69%, 81%)
CMYKcmyk(0%, 69.1%, 2.9%, 18.8%)
CIE-LABlab(53.12, 70.78, -42.33)
CIE-LCHlch(53.12, 82.47, 329.12°)
OKLaboklab(62.62% 0.1999 -0.1168)
OKLCHoklch(62.62% 0.232 329.7)
XYZxyz(38.1079, 21.1521, 57.3227)
Luminance0.2115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40C9 #40CF46
analogous
#8D40CF #CF40C9 #CF4082
triadic
#CF40C9 #C9CF40 #40C9CF
tetradic
#CF40C9 #CF8D40 #40CF46 #4082CF
square
#CF40C9 #CF8D40 #40CF46 #4082CF
split-complementary
#CF40C9 #82CF40 #40CF8D
monochromatic
#771E73 #A82AA2 #CF40C9 #DB71D7 #E8A2E5

Accessibility & contrast

On white

4.02
#CF40C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#CF40C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40C9
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40C9#FFFFFF#000000##000000
##CF40C91.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3072CD
Deuteranopia (green-blind)
#6986C5
Tritanopia (blue-blind)
#D65280
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cf40c9;
/* rgb */ color: rgb(207, 64, 201);
/* oklch */ color: oklch(62.6% 0.232 329.7);
Tailwind
colors: {
  custom: {
    50: '#e181da',
    500: '#cf40c9',
    950: '#000000',
  },
}
SCSS
$custom: #cf40c9;
$custom-light: #e181da;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40c9",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 302.517,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6262,
    "c": 0.23153,
    "h": 329.7
  },
  "luminance": 0.21149
}

Semantic roles & 50–950 ramp

primary
#CF40C9
secondary
#97D499
accent
#E34B45
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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