#D4227B#D4227B

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

Color values

HEX#D4227B
RGBrgb(212, 34, 123)
HSLhsl(330, 72%, 48%)
HSVhsv(330, 84%, 83%)
CMYKcmyk(0%, 84%, 42%, 16.9%)
CIE-LABlab(47.72, 70.63, -4.37)
CIE-LCHlch(47.72, 70.76, 356.46°)
OKLaboklab(57.81% 0.2176 -0.0106)
OKLCHoklch(57.81% 0.218 357.2)
XYZxyz(31.3010, 16.5754, 20.2862)
Luminance0.1657 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4227B #22D47B
analogous
#D422D4 #D4227B #D42222
triadic
#D4227B #7BD422 #227BD4
tetradic
#D4227B #D4D422 #22D47B #2222D4
square
#D4227B #D4D422 #22D47B #2222D4
split-complementary
#D4227B #22D422 #22D4D4
monochromatic
#6B113E #9F1A5C #D4227B #E3509A #EB85B8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4227B#FFFFFF#000000##FFFFFF
##D4227B1.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)
#4E5C7D
Deuteranopia (green-blind)
#7F7D77
Tritanopia (blue-blind)
#E6004D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #d4227b;
/* rgb */ color: rgb(212, 34, 123);
/* oklch */ color: oklch(57.8% 0.218 357.2);
Tailwind
colors: {
  custom: {
    50: '#e774a1',
    500: '#d4227b',
    950: '#000000',
  },
}
SCSS
$custom: #d4227b;
$custom-light: #e774a1;
$custom-dark: #000000;
JSON
{
  "hex": "#d4227b",
  "rgb": {
    "r": 212,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 330,
    "s": 72.358,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57807,
    "c": 0.21788,
    "h": 357.2
  },
  "luminance": 0.16571
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4227B

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

Preview Lab → · Contrast checker → · Palette generator →

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