#CF40BD#CF40BD

#CF40BD is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 62.0% C 0.223 H 333.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#CF40BD
RGBrgb(207, 64, 189)
HSLhsl(308, 60%, 53%)
HSVhsv(308, 69%, 81%)
CMYKcmyk(0%, 69.1%, 8.7%, 18.8%)
CIE-LABlab(52.52, 68.92, -36.35)
CIE-LCHlch(52.52, 77.92, 332.19°)
OKLaboklab(62% 0.1992 -0.0995)
OKLCHoklch(62% 0.223 333.4)
XYZxyz(36.7510, 20.6093, 50.1767)
Luminance0.2061 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40BD #40CF52
analogous
#9940CF #CF40BD #CF4076
triadic
#CF40BD #BDCF40 #40BDCF
tetradic
#CF40BD #CF9940 #40CF52 #4076CF
square
#CF40BD #CF9940 #40CF52 #4076CF
split-complementary
#CF40BD #76CF40 #40CF99
monochromatic
#771E6C #A82A98 #CF40BD #DB71CE #E8A2DF

Accessibility & contrast

On white

4.10
#CF40BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#CF40BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40BD
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40BD#FFFFFF#000000##000000
##CF40BD1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C70C1
Deuteranopia (green-blind)
#6E85B9
Tritanopia (blue-blind)
#D84D7A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf40bd;
/* rgb */ color: rgb(207, 64, 189);
/* oklch */ color: oklch(62.0% 0.223 333.4);
Tailwind
colors: {
  custom: {
    50: '#e181d1',
    500: '#cf40bd',
    950: '#000000',
  },
}
SCSS
$custom: #cf40bd;
$custom-light: #e181d1;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40bd",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 307.552,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61997,
    "c": 0.22268,
    "h": 333.4
  },
  "luminance": 0.20606
}

Semantic roles & 50–950 ramp

primary
#CF40BD
secondary
#97D49E
accent
#E35945
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CF40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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