#D21F5F#D21F5F

#D21F5F is a mid, highly saturated pink. Relative luminance 0.155; OKLCH L 56.5% C 0.211 H 7.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#D21F5F
RGBrgb(210, 31, 95)
HSLhsl(339, 74%, 47%)
HSVhsv(339, 85%, 82%)
CMYKcmyk(0%, 85.2%, 54.8%, 17.6%)
CIE-LABlab(46.33, 68.48, 10.82)
CIE-LCHlch(46.33, 69.33, 8.98°)
OKLaboklab(56.46% 0.2088 0.0276)
OKLCHoklch(56.46% 0.211 7.5)
XYZxyz(29.1368, 15.5122, 12.2842)
Luminance0.1551 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D21F5F #1FD292
analogous
#D21FB9 #D21F5F #D2381F
triadic
#D21F5F #5FD21F #1F5FD2
tetradic
#D21F5F #B9D21F #1FD292 #381FD2
square
#D21F5F #B9D21F #1FD292 #381FD2
split-complementary
#D21F5F #1FD238 #1FB9D2
monochromatic
#670F2F #9D1747 #D21F5F #E44A81 #EC7FA6

Accessibility & contrast

On white

5.12
#D21F5F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#D21F5F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D21F5F
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D21F5F#FFFFFF#000000##FFFFFF
##D21F5F1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#545760
Deuteranopia (green-blind)
#827A5B
Tritanopia (blue-blind)
#E6003D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #d21f5f;
/* rgb */ color: rgb(210, 31, 95);
/* oklch */ color: oklch(56.5% 0.211 7.5);
Tailwind
colors: {
  custom: {
    50: '#e7728c',
    500: '#d21f5f',
    950: '#000000',
  },
}
SCSS
$custom: #d21f5f;
$custom-light: #e7728c;
$custom-dark: #000000;
JSON
{
  "hex": "#d21f5f",
  "rgb": {
    "r": 210,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 338.547,
    "s": 74.274,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56463,
    "c": 0.21065,
    "h": 7.5
  },
  "luminance": 0.15508
}

Semantic roles & 50–950 ramp

primary
#D21F5F
secondary
#78D4B4
accent
#F1AE37
background
#FFF7F8
surface
#FEEDF0
border
#D6C8CB
text
#17090C
muted
#857B7D

Preview Lab

Preview with #D21F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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