#D240B7#D240B7

#D240B7 is a light, highly saturated pink. Relative luminance 0.208; OKLCH L 62.1% C 0.220 H 336.3°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#D240B7
RGBrgb(210, 64, 183)
HSLhsl(311, 62%, 54%)
HSVhsv(311, 70%, 82%)
CMYKcmyk(0%, 69.5%, 12.9%, 17.6%)
CIE-LABlab(52.72, 68.74, -32.51)
CIE-LCHlch(52.72, 76.05, 334.69°)
OKLaboklab(62.14% 0.2016 -0.0885)
OKLCHoklch(62.14% 0.22 336.3)
XYZxyz(36.9595, 20.7906, 46.8570)
Luminance0.2079 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240B7 #40D25B
analogous
#A440D2 #D240B7 #D2406E
triadic
#D240B7 #B7D240 #40B7D2
tetradic
#D240B7 #D2A440 #40D25B #406ED2
square
#D240B7 #D2A440 #40D25B #406ED2
split-complementary
#D240B7 #6ED240 #40D2A4
monochromatic
#7B1D69 #AC2994 #D240B7 #DE72CA #E9A3DC

Accessibility & contrast

On white

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

On black

5.16
#D240B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240B7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240B7#FFFFFF#000000##000000
##D240B71.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4270BA
Deuteranopia (green-blind)
#7386B3
Tritanopia (blue-blind)
#DD4976
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d240b7;
/* rgb */ color: rgb(210, 64, 183);
/* oklch */ color: oklch(62.1% 0.220 336.3);
Tailwind
colors: {
  custom: {
    50: '#e481cd',
    500: '#d240b7',
    950: '#000000',
  },
}
SCSS
$custom: #d240b7;
$custom-light: #e481cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d240b7",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 311.096,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62143,
    "c": 0.22016,
    "h": 336.3
  },
  "luminance": 0.20787
}

Semantic roles & 50–950 ramp

primary
#D240B7
secondary
#98D6A3
accent
#E56143
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D240B7

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

Preview Lab → · Contrast checker → · Palette generator →

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