#CF40B2#CF40B2

#CF40B2 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.5% C 0.215 H 337.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CF40B2
RGBrgb(207, 64, 178)
HSLhsl(312, 60%, 53%)
HSVhsv(312, 69%, 81%)
CMYKcmyk(0%, 69.1%, 14%, 18.8%)
CIE-LABlab(52.01, 67.30, -30.75)
CIE-LCHlch(52.01, 73.99, 335.44°)
OKLaboklab(61.46% 0.198 -0.0835)
OKLCHoklch(61.46% 0.215 337.1)
XYZxyz(35.6020, 20.1497, 44.1251)
Luminance0.2015 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B2 #40CF5D
analogous
#A540CF #CF40B2 #CF406A
triadic
#CF40B2 #B2CF40 #40B2CF
tetradic
#CF40B2 #CFA540 #40CF5D #406ACF
square
#CF40B2 #CFA540 #40CF5D #406ACF
split-complementary
#CF40B2 #6ACF40 #40CFA5
monochromatic
#771E65 #A82A8E #CF40B2 #DB71C6 #E8A2D9

Accessibility & contrast

On white

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

On black

5.03
#CF40B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40B2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40B2#FFFFFF#000000##000000
##CF40B21.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#446EB5
Deuteranopia (green-blind)
#7384AF
Tritanopia (blue-blind)
#DA4874
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf40b2;
/* rgb */ color: rgb(207, 64, 178);
/* oklch */ color: oklch(61.5% 0.215 337.1);
Tailwind
colors: {
  custom: {
    50: '#e180c9',
    500: '#cf40b2',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b2;
$custom-light: #e180c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b2",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 312.168,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61458,
    "c": 0.21494,
    "h": 337.1
  },
  "luminance": 0.20147
}

Semantic roles & 50–950 ramp

primary
#CF40B2
secondary
#97D4A3
accent
#E36545
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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