#CF40D5#CF40D5

#CF40D5 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.3% C 0.241 H 326.2°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#CF40D5
RGBrgb(207, 64, 213)
HSLhsl(298, 64%, 54%)
HSVhsv(298, 70%, 84%)
CMYKcmyk(2.8%, 70%, 0%, 16.5%)
CIE-LABlab(53.75, 72.72, -48.19)
CIE-LCHlch(53.75, 87.24, 326.47°)
OKLaboklab(63.28% 0.2001 -0.1338)
OKLCHoklch(63.28% 0.241 326.2)
XYZxyz(39.5750, 21.7389, 65.0495)
Luminance0.2174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF40D5 #46D540
analogous
#8540D5 #CF40D5 #D54091
triadic
#CF40D5 #D5CF40 #40D5CF
tetradic
#CF40D5 #D58540 #46D540 #4091D5
square
#CF40D5 #D58540 #46D540 #4091D5
split-complementary
#CF40D5 #91D540 #40D585
monochromatic
#7B1C7F #AB27B1 #CF40D5 #DC72E0 #E8A4EB

Accessibility & contrast

On white

3.93
#CF40D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#CF40D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF40D5
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF40D5#FFFFFF#000000##000000
##CF40D51.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E75D9
Deuteranopia (green-blind)
#6287D1
Tritanopia (blue-blind)
#D45887
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #cf40d5;
/* rgb */ color: rgb(207, 64, 213);
/* oklch */ color: oklch(63.3% 0.241 326.2);
Tailwind
colors: {
  custom: {
    50: '#e282e2',
    500: '#cf40d5',
    950: '#000000',
  },
}
SCSS
$custom: #cf40d5;
$custom-light: #e282e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf40d5",
  "rgb": {
    "r": 207,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 297.584,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.6328,
    "c": 0.24072,
    "h": 326.2
  },
  "luminance": 0.21736
}

Semantic roles & 50–950 ramp

primary
#CF40D5
secondary
#9BD899
accent
#E74148
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CF40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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