#D4238A#D4238A

#D4238A is a mid, highly saturated pink. Relative luminance 0.170; OKLCH L 58.4% C 0.223 H 351.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#D4238A
RGBrgb(212, 35, 138)
HSLhsl(325, 72%, 48%)
HSVhsv(325, 83%, 83%)
CMYKcmyk(0%, 83.5%, 34.9%, 16.9%)
CIE-LABlab(48.31, 71.88, -12.60)
CIE-LCHlch(48.31, 72.98, 350.05°)
OKLaboklab(58.4% 0.221 -0.0326)
OKLCHoklch(58.4% 0.223 351.6)
XYZxyz(32.3419, 17.0382, 25.6254)
Luminance0.1703 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4238A #23D46D
analogous
#C523D4 #D4238A #D42331
triadic
#D4238A #8AD423 #238AD4
tetradic
#D4238A #D4C523 #23D46D #2331D4
square
#D4238A #D4C523 #23D46D #2331D4
split-complementary
#D4238A #31D423 #23D4C5
monochromatic
#6B1246 #9F1A68 #D4238A #E252A6 #EB86C1

Accessibility & contrast

On white

4.77
#D4238A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#D4238A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D4238A
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4238A#FFFFFF#000000##FFFFFF
##D4238A1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495F8C
Deuteranopia (green-blind)
#7B7E86
Tritanopia (blue-blind)
#E50556
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #d4238a;
/* rgb */ color: rgb(212, 35, 138);
/* oklch */ color: oklch(58.4% 0.223 351.6);
Tailwind
colors: {
  custom: {
    50: '#e775ac',
    500: '#d4238a',
    950: '#000000',
  },
}
SCSS
$custom: #d4238a;
$custom-light: #e775ac;
$custom-dark: #000000;
JSON
{
  "hex": "#d4238a",
  "rgb": {
    "r": 212,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 325.085,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58402,
    "c": 0.22335,
    "h": 351.6
  },
  "luminance": 0.17034
}

Semantic roles & 50–950 ramp

primary
#D4238A
secondary
#7ED4A2
accent
#EE8539
background
#FEF7FA
surface
#FDEEF4
border
#D5C9CE
text
#170A10
muted
#857C7F

Preview Lab

Preview with #D4238A

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

Preview Lab → · Contrast checker → · Palette generator →

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