#CF40C1#CF40C1

#CF40C1 is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.2% C 0.226 H 332.2°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#CF40C1
RGBrgb(207, 64, 193)
HSLhsl(306, 60%, 53%)
HSVhsv(306, 69%, 81%)
CMYKcmyk(0%, 69.1%, 6.8%, 18.8%)
CIE-LABlab(52.71, 69.53, -38.35)
CIE-LCHlch(52.71, 79.41, 331.12°)
OKLaboklab(62.2% 0.1995 -0.1053)
OKLCHoklch(62.2% 0.226 332.2)
XYZxyz(37.1912, 20.7854, 52.4949)
Luminance0.2078 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40C1 #40CF4E
analogous
#9540CF #CF40C1 #CF4079
triadic
#CF40C1 #C1CF40 #40C1CF
tetradic
#CF40C1 #CF9540 #40CF4E #4079CF
square
#CF40C1 #CF9540 #40CF4E #4079CF
split-complementary
#CF40C1 #79CF40 #40CF95
monochromatic
#771E6E #A82A9B #CF40C1 #DB71D1 #E8A2E1

Accessibility & contrast

On white

4.07
#CF40C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#CF40C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40C1
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40C1#FFFFFF#000000##000000
##CF40C11.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3871C5
Deuteranopia (green-blind)
#6D85BD
Tritanopia (blue-blind)
#D84F7C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cf40c1;
/* rgb */ color: rgb(207, 64, 193);
/* oklch */ color: oklch(62.2% 0.226 332.2);
Tailwind
colors: {
  custom: {
    50: '#e181d4',
    500: '#cf40c1',
    950: '#000000',
  },
}
SCSS
$custom: #cf40c1;
$custom-light: #e181d4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40c1",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 305.874,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.622,
    "c": 0.22559,
    "h": 332.2
  },
  "luminance": 0.20782
}

Semantic roles & 50–950 ramp

primary
#CF40C1
secondary
#97D49D
accent
#E35445
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CF40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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