#FF40CC#FF40CC

#FF40CC is a light, highly saturated pink. Relative luminance 0.293; OKLCH L 69.9% C 0.260 H 341.2°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#FF40CC
RGBrgb(255, 64, 204)
HSLhsl(316, 100%, 63%)
HSVhsv(316, 75%, 100%)
CMYKcmyk(0%, 74.9%, 20%, 0%)
CIE-LABlab(61.04, 81.99, -31.08)
CIE-LCHlch(61.04, 87.68, 339.24°)
OKLaboklab(69.86% 0.2458 -0.0837)
OKLCHoklch(69.86% 0.26 341.2)
XYZxyz(53.9742, 29.2920, 59.9264)
Luminance0.2929 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF40CC #40FF73
analogous
#D340FF #FF40CC #FF406C
triadic
#FF40CC #CCFF40 #40CCFF
tetradic
#FF40CC #FFD340 #40FF73 #406CFF
square
#FF40CC #FFD340 #40FF73 #406CFF
split-complementary
#FF40CC #6CFF40 #40FFD3
monochromatic
#C50090 #FF03BC #FF40CC #FF7DDC #FFBAED

Accessibility & contrast

On white

3.06
#FF40CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#FF40CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #FF40CC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF40CC#FFFFFF#000000##000000
##FF40CC1.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5180D0
Deuteranopia (green-blind)
#8F9EC8
Tritanopia (blue-blind)
#FF4482
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ff40cc;
/* rgb */ color: rgb(255, 64, 204);
/* oklch */ color: oklch(69.9% 0.260 341.2);
Tailwind
colors: {
  custom: {
    50: '#ff87dc',
    500: '#ff40cc',
    950: '#000000',
  },
}
SCSS
$custom: #ff40cc;
$custom-light: #ff87dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ff40cc",
  "rgb": {
    "r": 255,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 316.021,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.69859,
    "c": 0.25961,
    "h": 341.2
  },
  "luminance": 0.29286
}

Semantic roles & 50–950 ramp

primary
#FF40CC
secondary
#ABF0BD
accent
#E63D00
background
#FFF9FD
surface
#FFF1FB
border
#D7CBD4
text
#190D15
muted
#877E83

Preview Lab

Preview with #FF40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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