#CF40B0#CF40B0

#CF40B0 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.4% C 0.214 H 337.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CF40B0
RGBrgb(207, 64, 176)
HSLhsl(313, 60%, 53%)
HSVhsv(313, 69%, 81%)
CMYKcmyk(0%, 69.1%, 15%, 18.8%)
CIE-LABlab(51.92, 67.01, -29.72)
CIE-LCHlch(51.92, 73.31, 336.08°)
OKLaboklab(61.36% 0.1978 -0.0806)
OKLCHoklch(61.36% 0.214 337.8)
XYZxyz(35.4027, 20.0700, 43.0752)
Luminance0.2007 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40B0 #40CF5F
analogous
#A640CF #CF40B0 #CF4068
triadic
#CF40B0 #B0CF40 #40B0CF
tetradic
#CF40B0 #CFA640 #40CF5F #4068CF
square
#CF40B0 #CFA640 #40CF5F #4068CF
split-complementary
#CF40B0 #68CF40 #40CFA6
monochromatic
#771E63 #A82A8C #CF40B0 #DB71C4 #E8A2D8

Accessibility & contrast

On white

4.19
#CF40B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CF40B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40B0
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40B0#FFFFFF#000000##000000
##CF40B01.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#456EB3
Deuteranopia (green-blind)
#7484AD
Tritanopia (blue-blind)
#DA4773
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cf40b0;
/* rgb */ color: rgb(207, 64, 176);
/* oklch */ color: oklch(61.4% 0.214 337.8);
Tailwind
colors: {
  custom: {
    50: '#e180c8',
    500: '#cf40b0',
    950: '#000000',
  },
}
SCSS
$custom: #cf40b0;
$custom-light: #e180c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40b0",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 313.007,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.61364,
    "c": 0.21357,
    "h": 337.8
  },
  "luminance": 0.20067
}

Semantic roles & 50–950 ramp

primary
#CF40B0
secondary
#97D4A4
accent
#E36745
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CF40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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