#CF40CF#CF40CF

#CF40CF is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 62.9% C 0.236 H 327.9°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#CF40CF
RGBrgb(207, 64, 207)
HSLhsl(300, 60%, 53%)
HSVhsv(300, 69%, 81%)
CMYKcmyk(0%, 69.1%, 0%, 18.8%)
CIE-LABlab(53.43, 71.74, -45.27)
CIE-LCHlch(53.43, 84.83, 327.75°)
OKLaboklab(62.95% 0.2001 -0.1253)
OKLCHoklch(62.95% 0.236 327.9)
XYZxyz(38.8275, 21.4399, 61.1127)
Luminance0.2144 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40CF #40CF40
analogous
#8740CF #CF40CF #CF4087
triadic
#CF40CF #CFCF40 #40CFCF
tetradic
#CF40CF #CF8740 #40CF40 #4087CF
square
#CF40CF #CF8740 #40CF40 #4087CF
split-complementary
#CF40CF #87CF40 #40CF87
monochromatic
#771E77 #A82AA8 #CF40CF #DB71DB #E8A2E8

Accessibility & contrast

On white

3.97
#CF40CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#CF40CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40CF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40CF#FFFFFF#000000##000000
##CF40CF1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2874D3
Deuteranopia (green-blind)
#6586CB
Tritanopia (blue-blind)
#D55583
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cf40cf;
/* rgb */ color: rgb(207, 64, 207);
/* oklch */ color: oklch(62.9% 0.236 327.9);
Tailwind
colors: {
  custom: {
    50: '#e181de',
    500: '#cf40cf',
    950: '#000000',
  },
}
SCSS
$custom: #cf40cf;
$custom-light: #e181de;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40cf",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 300,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62946,
    "c": 0.23609,
    "h": 327.9
  },
  "luminance": 0.21437
}

Semantic roles & 50–950 ramp

primary
#CF40CF
secondary
#97D497
accent
#E34545
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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