#D240B8#D240B8

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

Color values

HEX#D240B8
RGBrgb(210, 64, 184)
HSLhsl(311, 62%, 54%)
HSVhsv(311, 70%, 82%)
CMYKcmyk(0%, 69.5%, 12.4%, 17.6%)
CIE-LABlab(52.77, 68.89, -33.02)
CIE-LCHlch(52.77, 76.40, 334.39°)
OKLaboklab(62.19% 0.2017 -0.09)
OKLCHoklch(62.19% 0.221 336)
XYZxyz(37.0640, 20.8324, 47.4071)
Luminance0.2083 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240B8 #40D25A
analogous
#A340D2 #D240B8 #D2406F
triadic
#D240B8 #B8D240 #40B8D2
tetradic
#D240B8 #D2A340 #40D25A #406FD2
square
#D240B8 #D2A340 #40D25A #406FD2
split-complementary
#D240B8 #6FD240 #40D2A3
monochromatic
#7B1D6A #AC2995 #D240B8 #DE72CA #E9A3DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D240B8#FFFFFF#000000##000000
##D240B81.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)
#4270BB
Deuteranopia (green-blind)
#7386B4
Tritanopia (blue-blind)
#DD4A77
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d240b8;
/* rgb */ color: rgb(210, 64, 184);
/* oklch */ color: oklch(62.2% 0.221 336.0);
Tailwind
colors: {
  custom: {
    50: '#e481cd',
    500: '#d240b8',
    950: '#000000',
  },
}
SCSS
$custom: #d240b8;
$custom-light: #e481cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d240b8",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 310.685,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62191,
    "c": 0.22085,
    "h": 336
  },
  "luminance": 0.20829
}

Semantic roles & 50–950 ramp

primary
#D240B8
secondary
#98D6A3
accent
#E56043
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D240B8

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

Preview Lab → · Contrast checker → · Palette generator →

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