#CF40B1#CF40B1

#CF40B1 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.4% C 0.214 H 337.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#CF40B1
RGBrgb(207, 64, 177)
HSLhsl(313, 60%, 53%)
HSVhsv(313, 69%, 81%)
CMYKcmyk(0%, 69.1%, 14.5%, 18.8%)
CIE-LABlab(51.96, 67.15, -30.24)
CIE-LCHlch(51.96, 73.65, 335.76°)
OKLaboklab(61.41% 0.1979 -0.0821)
OKLCHoklch(61.41% 0.214 337.5)
XYZxyz(35.5020, 20.1097, 43.5983)
Luminance0.2011 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B1 #40CF5E
analogous
#A540CF #CF40B1 #CF4069
triadic
#CF40B1 #B1CF40 #40B1CF
tetradic
#CF40B1 #CFA540 #40CF5E #4069CF
square
#CF40B1 #CFA540 #40CF5E #4069CF
split-complementary
#CF40B1 #69CF40 #40CFA5
monochromatic
#771E64 #A82A8D #CF40B1 #DB71C5 #E8A2D9

Accessibility & contrast

On white

4.18
#CF40B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#CF40B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40B1
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40B1#FFFFFF#000000##000000
##CF40B11.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#456EB4
Deuteranopia (green-blind)
#7484AE
Tritanopia (blue-blind)
#DA4773
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf40b1;
/* rgb */ color: rgb(207, 64, 177);
/* oklch */ color: oklch(61.4% 0.214 337.5);
Tailwind
colors: {
  custom: {
    50: '#e180c8',
    500: '#cf40b1',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b1;
$custom-light: #e180c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b1",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 312.587,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61411,
    "c": 0.21425,
    "h": 337.5
  },
  "luminance": 0.20107
}

Semantic roles & 50–950 ramp

primary
#CF40B1
secondary
#97D4A4
accent
#E36645
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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