#D240B2#D240B2

#D240B2 is a mid, highly saturated pink. Relative luminance 0.206; OKLCH L 61.9% C 0.217 H 338.0°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#D240B2
RGBrgb(210, 64, 178)
HSLhsl(313, 62%, 54%)
HSVhsv(313, 70%, 82%)
CMYKcmyk(0%, 69.5%, 15.2%, 17.6%)
CIE-LABlab(52.49, 68.03, -29.96)
CIE-LCHlch(52.49, 74.33, 336.23°)
OKLaboklab(61.91% 0.201 -0.0812)
OKLCHoklch(61.91% 0.217 338)
XYZxyz(36.4483, 20.5861, 44.1648)
Luminance0.2058 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240B2 #40D260
analogous
#A940D2 #D240B2 #D24069
triadic
#D240B2 #B2D240 #40B2D2
tetradic
#D240B2 #D2A940 #40D260 #4069D2
square
#D240B2 #D2A940 #40D260 #4069D2
split-complementary
#D240B2 #69D240 #40D2A9
monochromatic
#7B1D66 #AC298F #D240B2 #DE72C6 #E9A3DA

Accessibility & contrast

On white

4.10
#D240B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#D240B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240B2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240B2#FFFFFF#000000##000000
##D240B21.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#466FB5
Deuteranopia (green-blind)
#7585AE
Tritanopia (blue-blind)
#DD4774
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d240b2;
/* rgb */ color: rgb(210, 64, 178);
/* oklch */ color: oklch(61.9% 0.217 338.0);
Tailwind
colors: {
  custom: {
    50: '#e481c9',
    500: '#d240b2',
    950: '#000000',
  },
}
SCSS
$custom: #d240b2;
$custom-light: #e481c9;
$custom-dark: #000000;
JSON
{
  "hex": "#d240b2",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 313.151,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61905,
    "c": 0.21676,
    "h": 338
  },
  "luminance": 0.20583
}

Semantic roles & 50–950 ramp

primary
#D240B2
secondary
#98D6A5
accent
#E56643
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D240B2

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

Preview Lab → · Contrast checker → · Palette generator →

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