#CF40B8#CF40B8

#CF40B8 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.7% C 0.219 H 335.1°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CF40B8
RGBrgb(207, 64, 184)
HSLhsl(310, 60%, 53%)
HSVhsv(310, 69%, 81%)
CMYKcmyk(0%, 69.1%, 11.1%, 18.8%)
CIE-LABlab(52.28, 68.17, -33.82)
CIE-LCHlch(52.28, 76.10, 333.62°)
OKLaboklab(61.75% 0.1987 -0.0923)
OKLCHoklch(61.75% 0.219 335.1)
XYZxyz(36.2177, 20.3960, 47.3674)
Luminance0.2039 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B8 #40CF57
analogous
#9E40CF #CF40B8 #CF4070
triadic
#CF40B8 #B8CF40 #40B8CF
tetradic
#CF40B8 #CF9E40 #40CF57 #4070CF
square
#CF40B8 #CF9E40 #40CF57 #4070CF
split-complementary
#CF40B8 #70CF40 #40CF9E
monochromatic
#771E68 #A82A93 #CF40B8 #DB71CA #E8A2DC

Accessibility & contrast

On white

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

On black

5.08
#CF40B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40B8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40B8#FFFFFF#000000##000000
##CF40B81.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#406FBB
Deuteranopia (green-blind)
#7184B4
Tritanopia (blue-blind)
#D94B77
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cf40b8;
/* rgb */ color: rgb(207, 64, 184);
/* oklch */ color: oklch(61.7% 0.219 335.1);
Tailwind
colors: {
  custom: {
    50: '#e181cd',
    500: '#cf40b8',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b8;
$custom-light: #e181cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b8",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 309.65,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61748,
    "c": 0.21911,
    "h": 335.1
  },
  "luminance": 0.20393
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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