#CF40C5#CF40C5

#CF40C5 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.4% C 0.229 H 330.9°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#CF40C5
RGBrgb(207, 64, 197)
HSLhsl(304, 60%, 53%)
HSVhsv(304, 69%, 81%)
CMYKcmyk(0%, 69.1%, 4.8%, 18.8%)
CIE-LABlab(52.91, 70.15, -40.35)
CIE-LCHlch(52.91, 80.93, 330.09°)
OKLaboklab(62.41% 0.1997 -0.1111)
OKLCHoklch(62.41% 0.229 330.9)
XYZxyz(37.6435, 20.9663, 54.8768)
Luminance0.2096 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40C5 #40CF4A
analogous
#9140CF #CF40C5 #CF407D
triadic
#CF40C5 #C5CF40 #40C5CF
tetradic
#CF40C5 #CF9140 #40CF4A #407DCF
square
#CF40C5 #CF9140 #40CF4A #407DCF
split-complementary
#CF40C5 #7DCF40 #40CF91
monochromatic
#771E71 #A82A9F #CF40C5 #DB71D4 #E8A2E3

Accessibility & contrast

On white

4.04
#CF40C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#CF40C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40C5
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40C5#FFFFFF#000000##000000
##CF40C51.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3472C9
Deuteranopia (green-blind)
#6B85C1
Tritanopia (blue-blind)
#D7507E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cf40c5;
/* rgb */ color: rgb(207, 64, 197);
/* oklch */ color: oklch(62.4% 0.229 330.9);
Tailwind
colors: {
  custom: {
    50: '#e181d7',
    500: '#cf40c5',
    950: '#000000',
  },
}
SCSS
$custom: #cf40c5;
$custom-light: #e181d7;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40c5",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 304.196,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62408,
    "c": 0.22854,
    "h": 330.9
  },
  "luminance": 0.20963
}

Semantic roles & 50–950 ramp

primary
#CF40C5
secondary
#97D49B
accent
#E35045
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CF40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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