#D4227A#D4227A

#D4227A is a mid, highly saturated pink. Relative luminance 0.165; OKLCH L 57.8% C 0.218 H 357.6°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#D4227A
RGBrgb(212, 34, 122)
HSLhsl(330, 72%, 48%)
HSVhsv(330, 84%, 83%)
CMYKcmyk(0%, 84%, 42.5%, 16.9%)
CIE-LABlab(47.69, 70.54, -3.80)
CIE-LCHlch(47.69, 70.64, 356.91°)
OKLaboklab(57.77% 0.2173 -0.0091)
OKLCHoklch(57.77% 0.218 357.6)
XYZxyz(31.2387, 16.5505, 19.9582)
Luminance0.1655 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4227A #22D47C
analogous
#D422D3 #D4227A #D42322
triadic
#D4227A #7AD422 #227AD4
tetradic
#D4227A #D3D422 #22D47C #2322D4
square
#D4227A #D3D422 #22D47C #2322D4
split-complementary
#D4227A #22D423 #22D3D4
monochromatic
#6B113D #9F1A5C #D4227A #E35099 #EB85B8

Accessibility & contrast

On white

4.87
#D4227A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#D4227A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D4227A
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4227A#FFFFFF#000000##FFFFFF
##D4227A1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5C7C
Deuteranopia (green-blind)
#7F7D76
Tritanopia (blue-blind)
#E6004D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #d4227a;
/* rgb */ color: rgb(212, 34, 122);
/* oklch */ color: oklch(57.8% 0.218 357.6);
Tailwind
colors: {
  custom: {
    50: '#e774a0',
    500: '#d4227a',
    950: '#000000',
  },
}
SCSS
$custom: #d4227a;
$custom-light: #e774a0;
$custom-dark: #000000;
JSON
{
  "hex": "#d4227a",
  "rgb": {
    "r": 212,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 330.337,
    "s": 72.358,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57774,
    "c": 0.21751,
    "h": 357.6
  },
  "luminance": 0.16546
}

Semantic roles & 50–950 ramp

primary
#D4227A
secondary
#7DD5A9
accent
#EF9539
background
#FFF7F9
surface
#FEEEF2
border
#D6C9CC
text
#170A0E
muted
#857C7E

Preview Lab

Preview with #D4227A

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

Preview Lab → · Contrast checker → · Palette generator →

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