#CF40B9#CF40B9

#CF40B9 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.8% C 0.220 H 334.8°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#CF40B9
RGBrgb(207, 64, 185)
HSLhsl(309, 60%, 53%)
HSVhsv(309, 69%, 81%)
CMYKcmyk(0%, 69.1%, 10.6%, 18.8%)
CIE-LABlab(52.33, 68.32, -34.32)
CIE-LCHlch(52.33, 76.46, 333.33°)
OKLaboklab(61.8% 0.1988 -0.0937)
OKLCHoklch(61.8% 0.22 334.8)
XYZxyz(36.3228, 20.4381, 47.9214)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B9 #40CF56
analogous
#9E40CF #CF40B9 #CF4071
triadic
#CF40B9 #B9CF40 #40B9CF
tetradic
#CF40B9 #CF9E40 #40CF56 #4071CF
square
#CF40B9 #CF9E40 #40CF56 #4071CF
split-complementary
#CF40B9 #71CF40 #40CF9E
monochromatic
#771E69 #A82A94 #CF40B9 #DB71CB #E8A2DD

Accessibility & contrast

On white

4.13
#CF40B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#CF40B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40B9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40B9#FFFFFF#000000##000000
##CF40B91.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6FBC
Deuteranopia (green-blind)
#7084B5
Tritanopia (blue-blind)
#D94B77
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf40b9;
/* rgb */ color: rgb(207, 64, 185);
/* oklch */ color: oklch(61.8% 0.220 334.8);
Tailwind
colors: {
  custom: {
    50: '#e181ce',
    500: '#cf40b9',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b9;
$custom-light: #e181ce;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b9",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 309.231,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61797,
    "c": 0.21982,
    "h": 334.8
  },
  "luminance": 0.20435
}

Semantic roles & 50–950 ramp

primary
#CF40B9
secondary
#97D4A0
accent
#E35D45
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF40B9

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

Preview Lab → · Contrast checker → · Palette generator →

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