#CF40B6#CF40B6

#CF40B6 is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.7% C 0.218 H 335.8°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CF40B6
RGBrgb(207, 64, 182)
HSLhsl(310, 60%, 53%)
HSVhsv(310, 69%, 81%)
CMYKcmyk(0%, 69.1%, 12.1%, 18.8%)
CIE-LABlab(52.19, 67.88, -32.80)
CIE-LCHlch(52.19, 75.39, 334.21°)
OKLaboklab(61.65% 0.1985 -0.0894)
OKLCHoklch(61.65% 0.218 335.8)
XYZxyz(36.0095, 20.3127, 46.2711)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B6 #40CF59
analogous
#A140CF #CF40B6 #CF406E
triadic
#CF40B6 #B6CF40 #40B6CF
tetradic
#CF40B6 #CFA140 #40CF59 #406ECF
square
#CF40B6 #CFA140 #40CF59 #406ECF
split-complementary
#CF40B6 #6ECF40 #40CFA1
monochromatic
#771E67 #A82A92 #CF40B6 #DB71C9 #E8A2DB

Accessibility & contrast

On white

4.15
#CF40B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CF40B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40B6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40B6#FFFFFF#000000##000000
##CF40B61.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#416FB9
Deuteranopia (green-blind)
#7184B3
Tritanopia (blue-blind)
#D94A76
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf40b6;
/* rgb */ color: rgb(207, 64, 182);
/* oklch */ color: oklch(61.7% 0.218 335.8);
Tailwind
colors: {
  custom: {
    50: '#e181cc',
    500: '#cf40b6',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b6;
$custom-light: #e181cc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b6",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 310.49,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.6165,
    "c": 0.21771,
    "h": 335.8
  },
  "luminance": 0.2031
}

Semantic roles & 50–950 ramp

primary
#CF40B6
secondary
#97D4A1
accent
#E36045
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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