#CF40B3#CF40B3

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

Color values

HEX#CF40B3
RGBrgb(207, 64, 179)
HSLhsl(312, 60%, 53%)
HSVhsv(312, 69%, 81%)
CMYKcmyk(0%, 69.1%, 13.5%, 18.8%)
CIE-LABlab(52.05, 67.44, -31.26)
CIE-LCHlch(52.05, 74.33, 335.13°)
OKLaboklab(61.51% 0.1982 -0.085)
OKLCHoklch(61.51% 0.216 336.8)
XYZxyz(35.7028, 20.1900, 44.6558)
Luminance0.2019 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B3 #40CF5C
analogous
#A340CF #CF40B3 #CF406B
triadic
#CF40B3 #B3CF40 #40B3CF
tetradic
#CF40B3 #CFA340 #40CF5C #406BCF
square
#CF40B3 #CFA340 #40CF5C #406BCF
split-complementary
#CF40B3 #6BCF40 #40CFA3
monochromatic
#771E65 #A82A8F #CF40B3 #DB71C6 #E8A2DA

Accessibility & contrast

On white

4.17
#CF40B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#CF40B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40B3
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40B3#FFFFFF#000000##000000
##CF40B31.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#436EB6
Deuteranopia (green-blind)
#7384B0
Tritanopia (blue-blind)
#DA4874
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf40b3;
/* rgb */ color: rgb(207, 64, 179);
/* oklch */ color: oklch(61.5% 0.216 336.8);
Tailwind
colors: {
  custom: {
    50: '#e180ca',
    500: '#cf40b3',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b3;
$custom-light: #e180ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b3",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 311.748,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61506,
    "c": 0.21563,
    "h": 336.8
  },
  "luminance": 0.20187
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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