#CF40C2#CF40C2

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

Color values

HEX#CF40C2
RGBrgb(207, 64, 194)
HSLhsl(305, 60%, 53%)
HSVhsv(305, 69%, 81%)
CMYKcmyk(0%, 69.1%, 6.3%, 18.8%)
CIE-LABlab(52.76, 69.68, -38.85)
CIE-LCHlch(52.76, 79.78, 330.86°)
OKLaboklab(62.25% 0.1996 -0.1067)
OKLCHoklch(62.25% 0.226 331.9)
XYZxyz(37.3032, 20.8302, 53.0844)
Luminance0.2083 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40C2 #40CF4D
analogous
#9540CF #CF40C2 #CF407A
triadic
#CF40C2 #C2CF40 #40C2CF
tetradic
#CF40C2 #CF9540 #40CF4D #407ACF
square
#CF40C2 #CF9540 #40CF4D #407ACF
split-complementary
#CF40C2 #7ACF40 #40CF95
monochromatic
#771E6F #A82A9C #CF40C2 #DB71D2 #E8A2E1

Accessibility & contrast

On white

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

On black

5.17
#CF40C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40C2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40C2#FFFFFF#000000##000000
##CF40C21.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3771C6
Deuteranopia (green-blind)
#6C85BE
Tritanopia (blue-blind)
#D74F7C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cf40c2;
/* rgb */ color: rgb(207, 64, 194);
/* oklch */ color: oklch(62.3% 0.226 331.9);
Tailwind
colors: {
  custom: {
    50: '#e181d5',
    500: '#cf40c2',
    950: '#000000',
  },
}
SCSS
$custom: #cf40c2;
$custom-light: #e181d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40c2",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 305.455,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.62252,
    "c": 0.22632,
    "h": 331.9
  },
  "luminance": 0.20827
}

Semantic roles & 50–950 ramp

primary
#CF40C2
secondary
#97D49C
accent
#E35345
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CF40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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