#CF40B7#CF40B7

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

Color values

HEX#CF40B7
RGBrgb(207, 64, 183)
HSLhsl(310, 60%, 53%)
HSVhsv(310, 69%, 81%)
CMYKcmyk(0%, 69.1%, 11.6%, 18.8%)
CIE-LABlab(52.24, 68.02, -33.31)
CIE-LCHlch(52.24, 75.74, 333.91°)
OKLaboklab(61.7% 0.1986 -0.0908)
OKLCHoklch(61.7% 0.218 335.4)
XYZxyz(36.1132, 20.3542, 46.8173)
Luminance0.2035 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B7 #40CF58
analogous
#9F40CF #CF40B7 #CF406F
triadic
#CF40B7 #B7CF40 #40B7CF
tetradic
#CF40B7 #CF9F40 #40CF58 #406FCF
square
#CF40B7 #CF9F40 #40CF58 #406FCF
split-complementary
#CF40B7 #6FCF40 #40CF9F
monochromatic
#771E68 #A82A93 #CF40B7 #DB71C9 #E8A2DC

Accessibility & contrast

On white

4.14
#CF40B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#CF40B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40B7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40B7#FFFFFF#000000##000000
##CF40B71.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#406FBA
Deuteranopia (green-blind)
#7184B4
Tritanopia (blue-blind)
#D94A76
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf40b7;
/* rgb */ color: rgb(207, 64, 183);
/* oklch */ color: oklch(61.7% 0.218 335.4);
Tailwind
colors: {
  custom: {
    50: '#e181cd',
    500: '#cf40b7',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b7;
$custom-light: #e181cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b7",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 310.07,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61699,
    "c": 0.2184,
    "h": 335.4
  },
  "luminance": 0.20351
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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