#FF40D2#FF40D2

#FF40D2 is a light, highly saturated pink. Relative luminance 0.296; OKLCH L 70.1% C 0.263 H 339.5°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#FF40D2
RGBrgb(255, 64, 210)
HSLhsl(314, 100%, 63%)
HSVhsv(314, 75%, 100%)
CMYKcmyk(0%, 74.9%, 17.6%, 0%)
CIE-LABlab(61.29, 82.75, -34.08)
CIE-LCHlch(61.29, 89.49, 337.61°)
OKLaboklab(70.13% 0.2465 -0.0922)
OKLCHoklch(70.13% 0.263 339.5)
XYZxyz(54.7077, 29.5854, 63.7896)
Luminance0.2958 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF40D2 #40FF6D
analogous
#CC40FF #FF40D2 #FF4073
triadic
#FF40D2 #D2FF40 #40D2FF
tetradic
#FF40D2 #FFCC40 #40FF6D #4073FF
square
#FF40D2 #FFCC40 #40FF6D #4073FF
split-complementary
#FF40D2 #73FF40 #40FFCC
monochromatic
#C50096 #FF03C4 #FF40D2 #FF7DE0 #FFBAEF

Accessibility & contrast

On white

3.04
#FF40D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#FF40D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #FF40D2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF40D2#FFFFFF#000000##000000
##FF40D21.003.046.926.92
#FFFFFF3.041.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D81D6
Deuteranopia (green-blind)
#8D9FCE
Tritanopia (blue-blind)
#FF4885
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ff40d2;
/* rgb */ color: rgb(255, 64, 210);
/* oklch */ color: oklch(70.1% 0.263 339.5);
Tailwind
colors: {
  custom: {
    50: '#ff87e0',
    500: '#ff40d2',
    950: '#000000',
  },
}
SCSS
$custom: #ff40d2;
$custom-light: #ff87e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ff40d2",
  "rgb": {
    "r": 255,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 314.136,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.70128,
    "c": 0.2632,
    "h": 339.5
  },
  "luminance": 0.2958
}

Semantic roles & 50–950 ramp

primary
#FF40D2
secondary
#ABF0BB
accent
#E63600
background
#FFF9FD
surface
#FFF1FB
border
#D7CBD4
text
#190D15
muted
#877E83

Preview Lab

Preview with #FF40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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