#CF40B4#CF40B4

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

Color values

HEX#CF40B4
RGBrgb(207, 64, 180)
HSLhsl(311, 60%, 53%)
HSVhsv(311, 69%, 81%)
CMYKcmyk(0%, 69.1%, 13%, 18.8%)
CIE-LABlab(52.10, 67.59, -31.78)
CIE-LCHlch(52.10, 74.68, 334.82°)
OKLaboklab(61.55% 0.1983 -0.0864)
OKLCHoklch(61.55% 0.216 336.4)
XYZxyz(35.8043, 20.2306, 45.1904)
Luminance0.2023 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B4 #40CF5B
analogous
#A340CF #CF40B4 #CF406C
triadic
#CF40B4 #B4CF40 #40B4CF
tetradic
#CF40B4 #CFA340 #40CF5B #406CCF
square
#CF40B4 #CFA340 #40CF5B #406CCF
split-complementary
#CF40B4 #6CCF40 #40CFA3
monochromatic
#771E66 #A82A90 #CF40B4 #DB71C7 #E8A2DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CF40B4#FFFFFF#000000##000000
##CF40B41.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)
#436EB7
Deuteranopia (green-blind)
#7284B1
Tritanopia (blue-blind)
#DA4975
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf40b4;
/* rgb */ color: rgb(207, 64, 180);
/* oklch */ color: oklch(61.6% 0.216 336.4);
Tailwind
colors: {
  custom: {
    50: '#e180cb',
    500: '#cf40b4',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b4;
$custom-light: #e180cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b4",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 311.329,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61554,
    "c": 0.21632,
    "h": 336.4
  },
  "luminance": 0.20227
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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