#CF40BC#CF40BC

#CF40BC is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.9% C 0.222 H 333.8°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#CF40BC
RGBrgb(207, 64, 188)
HSLhsl(308, 60%, 53%)
HSVhsv(308, 69%, 81%)
CMYKcmyk(0%, 69.1%, 9.2%, 18.8%)
CIE-LABlab(52.47, 68.77, -35.84)
CIE-LCHlch(52.47, 77.55, 332.47°)
OKLaboklab(61.95% 0.1991 -0.0981)
OKLCHoklch(61.95% 0.222 333.8)
XYZxyz(36.6429, 20.5661, 49.6070)
Luminance0.2056 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40BC #40CF53
analogous
#9A40CF #CF40BC #CF4074
triadic
#CF40BC #BCCF40 #40BCCF
tetradic
#CF40BC #CF9A40 #40CF53 #4074CF
square
#CF40BC #CF9A40 #40CF53 #4074CF
split-complementary
#CF40BC #74CF40 #40CF9A
monochromatic
#771E6B #A82A97 #CF40BC #DB71CD #E8A2DE

Accessibility & contrast

On white

4.11
#CF40BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#CF40BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40BC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40BC#FFFFFF#000000##000000
##CF40BC1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D70C0
Deuteranopia (green-blind)
#6F85B8
Tritanopia (blue-blind)
#D84C79
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf40bc;
/* rgb */ color: rgb(207, 64, 188);
/* oklch */ color: oklch(61.9% 0.222 333.8);
Tailwind
colors: {
  custom: {
    50: '#e181d0',
    500: '#cf40bc',
    950: '#000000',
  },
}
SCSS
$custom: #cf40bc;
$custom-light: #e181d0;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40bc",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 307.972,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61946,
    "c": 0.22196,
    "h": 333.8
  },
  "luminance": 0.20563
}

Semantic roles & 50–950 ramp

primary
#CF40BC
secondary
#97D49F
accent
#E35A45
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CF40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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