#D4238B#D4238B

#D4238B is a mid, highly saturated pink. Relative luminance 0.171; OKLCH L 58.4% C 0.224 H 351.2°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#D4238B
RGBrgb(212, 35, 139)
HSLhsl(325, 72%, 48%)
HSVhsv(325, 83%, 83%)
CMYKcmyk(0%, 83.5%, 34.4%, 16.9%)
CIE-LABlab(48.34, 71.98, -13.15)
CIE-LCHlch(48.34, 73.18, 349.64°)
OKLaboklab(58.44% 0.2212 -0.0341)
OKLCHoklch(58.44% 0.224 351.2)
XYZxyz(32.4147, 17.0673, 26.0084)
Luminance0.1706 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4238B #23D46C
analogous
#C423D4 #D4238B #D42332
triadic
#D4238B #8BD423 #238BD4
tetradic
#D4238B #D4C423 #23D46C #2332D4
square
#D4238B #D4C423 #23D46C #2332D4
split-complementary
#D4238B #32D423 #23D4C4
monochromatic
#6B1246 #9F1A69 #D4238B #E252A7 #EB86C2

Accessibility & contrast

On white

4.76
#D4238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #D4238B
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4238B#FFFFFF#000000##FFFFFF
##D4238B1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485F8D
Deuteranopia (green-blind)
#7B7E87
Tritanopia (blue-blind)
#E40756
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #d4238b;
/* rgb */ color: rgb(212, 35, 139);
/* oklch */ color: oklch(58.4% 0.224 351.2);
Tailwind
colors: {
  custom: {
    50: '#e775ad',
    500: '#d4238b',
    950: '#000000',
  },
}
SCSS
$custom: #d4238b;
$custom-light: #e775ad;
$custom-dark: #000000;
JSON
{
  "hex": "#d4238b",
  "rgb": {
    "r": 212,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 324.746,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58441,
    "c": 0.22381,
    "h": 351.2
  },
  "luminance": 0.17063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4238B

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

Preview Lab → · Contrast checker → · Palette generator →

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