#CF40C6#CF40C6

#CF40C6 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.5% C 0.229 H 330.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#CF40C6
RGBrgb(207, 64, 198)
HSLhsl(304, 60%, 53%)
HSVhsv(304, 69%, 81%)
CMYKcmyk(0%, 69.1%, 4.3%, 18.8%)
CIE-LABlab(52.96, 70.31, -40.84)
CIE-LCHlch(52.96, 81.31, 329.85°)
OKLaboklab(62.46% 0.1998 -0.1125)
OKLCHoklch(62.46% 0.229 330.6)
XYZxyz(37.7584, 21.0123, 55.4822)
Luminance0.2101 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40C6 #40CF49
analogous
#9040CF #CF40C6 #CF407E
triadic
#CF40C6 #C6CF40 #40C6CF
tetradic
#CF40C6 #CF9040 #40CF49 #407ECF
square
#CF40C6 #CF9040 #40CF49 #407ECF
split-complementary
#CF40C6 #7ECF40 #40CF90
monochromatic
#771E71 #A82AA0 #CF40C6 #DB71D5 #E8A2E3

Accessibility & contrast

On white

4.04
#CF40C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#CF40C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40C6
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40C6#FFFFFF#000000##000000
##CF40C61.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3372CA
Deuteranopia (green-blind)
#6A85C2
Tritanopia (blue-blind)
#D7517E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cf40c6;
/* rgb */ color: rgb(207, 64, 198);
/* oklch */ color: oklch(62.5% 0.229 330.6);
Tailwind
colors: {
  custom: {
    50: '#e181d8',
    500: '#cf40c6',
    950: '#000000',
  },
}
SCSS
$custom: #cf40c6;
$custom-light: #e181d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40c6",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 303.776,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62461,
    "c": 0.22929,
    "h": 330.6
  },
  "luminance": 0.21009
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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