#D240B9#D240B9

#D240B9 is a light, highly saturated pink. Relative luminance 0.209; OKLCH L 62.2% C 0.222 H 335.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#D240B9
RGBrgb(210, 64, 185)
HSLhsl(310, 62%, 54%)
HSVhsv(310, 70%, 82%)
CMYKcmyk(0%, 69.5%, 11.9%, 17.6%)
CIE-LABlab(52.81, 69.04, -33.53)
CIE-LCHlch(52.81, 76.75, 334.09°)
OKLaboklab(62.24% 0.2018 -0.0914)
OKLCHoklch(62.24% 0.222 335.6)
XYZxyz(37.1692, 20.8745, 47.9611)
Luminance0.2087 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240B9 #40D259
analogous
#A240D2 #D240B9 #D24070
triadic
#D240B9 #B9D240 #40B9D2
tetradic
#D240B9 #D2A240 #40D259 #4070D2
square
#D240B9 #D2A240 #40D259 #4070D2
split-complementary
#D240B9 #70D240 #40D2A2
monochromatic
#7B1D6B #AC2996 #D240B9 #DE72CB #E9A3DD

Accessibility & contrast

On white

4.06
#D240B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D240B9#FFFFFF#000000##000000
##D240B91.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4170BC
Deuteranopia (green-blind)
#7386B5
Tritanopia (blue-blind)
#DC4A77
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d240b9;
/* rgb */ color: rgb(210, 64, 185);
/* oklch */ color: oklch(62.2% 0.222 335.6);
Tailwind
colors: {
  custom: {
    50: '#e481ce',
    500: '#d240b9',
    950: '#000000',
  },
}
SCSS
$custom: #d240b9;
$custom-light: #e481ce;
$custom-dark: #000000;
JSON
{
  "hex": "#d240b9",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 310.274,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.6224,
    "c": 0.22155,
    "h": 335.6
  },
  "luminance": 0.20871
}

Semantic roles & 50–950 ramp

primary
#D240B9
secondary
#98D6A2
accent
#E55F43
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D240B9

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

Preview Lab → · Contrast checker → · Palette generator →

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