#D240B5#D240B5

#D240B5 is a light, highly saturated pink. Relative luminance 0.207; OKLCH L 62.0% C 0.219 H 337.0°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#D240B5
RGBrgb(210, 64, 181)
HSLhsl(312, 62%, 54%)
HSVhsv(312, 70%, 82%)
CMYKcmyk(0%, 69.5%, 13.8%, 17.6%)
CIE-LABlab(52.63, 68.46, -31.49)
CIE-LCHlch(52.63, 75.35, 335.29°)
OKLaboklab(62.05% 0.2014 -0.0856)
OKLCHoklch(62.05% 0.219 337)
XYZxyz(36.7529, 20.7079, 45.7685)
Luminance0.2071 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240B5 #40D25D
analogous
#A640D2 #D240B5 #D2406C
triadic
#D240B5 #B5D240 #40B5D2
tetradic
#D240B5 #D2A640 #40D25D #406CD2
square
#D240B5 #D2A640 #40D25D #406CD2
split-complementary
#D240B5 #6CD240 #40D2A6
monochromatic
#7B1D68 #AC2992 #D240B5 #DE72C8 #E9A3DB

Accessibility & contrast

On white

4.08
#D240B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#D240B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240B5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240B5#FFFFFF#000000##000000
##D240B51.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#446FB8
Deuteranopia (green-blind)
#7486B1
Tritanopia (blue-blind)
#DD4875
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d240b5;
/* rgb */ color: rgb(210, 64, 181);
/* oklch */ color: oklch(62.0% 0.219 337.0);
Tailwind
colors: {
  custom: {
    50: '#e481cb',
    500: '#d240b5',
    950: '#000000',
  },
}
SCSS
$custom: #d240b5;
$custom-light: #e481cb;
$custom-dark: #000000;
JSON
{
  "hex": "#d240b5",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 311.918,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62047,
    "c": 0.21879,
    "h": 337
  },
  "luminance": 0.20705
}

Semantic roles & 50–950 ramp

primary
#D240B5
secondary
#98D6A4
accent
#E56343
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D240B5

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

Preview Lab → · Contrast checker → · Palette generator →

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