#CF40B5#CF40B5

#CF40B5 is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 61.6% C 0.217 H 336.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CF40B5
RGBrgb(207, 64, 181)
HSLhsl(311, 60%, 53%)
HSVhsv(311, 69%, 81%)
CMYKcmyk(0%, 69.1%, 12.6%, 18.8%)
CIE-LABlab(52.14, 67.73, -32.29)
CIE-LCHlch(52.14, 75.03, 334.51°)
OKLaboklab(61.6% 0.1984 -0.0879)
OKLCHoklch(61.6% 0.217 336.1)
XYZxyz(35.9065, 20.2715, 45.7288)
Luminance0.2027 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B5 #40CF5A
analogous
#A140CF #CF40B5 #CF406D
triadic
#CF40B5 #B5CF40 #40B5CF
tetradic
#CF40B5 #CFA140 #40CF5A #406DCF
square
#CF40B5 #CFA140 #40CF5A #406DCF
split-complementary
#CF40B5 #6DCF40 #40CFA1
monochromatic
#771E67 #A82A91 #CF40B5 #DB71C8 #E8A2DB

Accessibility & contrast

On white

4.16
#CF40B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CF40B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40B5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40B5#FFFFFF#000000##000000
##CF40B51.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#426FB8
Deuteranopia (green-blind)
#7284B2
Tritanopia (blue-blind)
#D94975
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf40b5;
/* rgb */ color: rgb(207, 64, 181);
/* oklch */ color: oklch(61.6% 0.217 336.1);
Tailwind
colors: {
  custom: {
    50: '#e181cb',
    500: '#cf40b5',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b5;
$custom-light: #e181cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b5",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 310.909,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61602,
    "c": 0.217,
    "h": 336.1
  },
  "luminance": 0.20268
}

Semantic roles & 50–950 ramp

primary
#CF40B5
secondary
#97D4A2
accent
#E36245
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF40B5

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

Preview Lab → · Contrast checker → · Palette generator →

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