#D4238E#D4238E

#D4238E is a mid, highly saturated pink. Relative luminance 0.172; OKLCH L 58.6% C 0.225 H 350.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#D4238E
RGBrgb(212, 35, 142)
HSLhsl(324, 72%, 48%)
HSVhsv(324, 83%, 83%)
CMYKcmyk(0%, 83.5%, 33%, 16.9%)
CIE-LABlab(48.46, 72.30, -14.80)
CIE-LCHlch(48.46, 73.80, 348.43°)
OKLaboklab(58.56% 0.2219 -0.0386)
OKLCHoklch(58.56% 0.225 350.1)
XYZxyz(32.6369, 17.1561, 27.1787)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4238E #23D469
analogous
#C123D4 #D4238E #D42335
triadic
#D4238E #8ED423 #238ED4
tetradic
#D4238E #D4C123 #23D469 #2335D4
square
#D4238E #D4C123 #23D469 #2335D4
split-complementary
#D4238E #35D423 #23D4C1
monochromatic
#6B1248 #9F1A6B #D4238E #E252A9 #EB86C3

Accessibility & contrast

On white

4.74
#D4238E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#D4238E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D4238E
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4238E#FFFFFF#000000##FFFFFF
##D4238E1.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475F91
Deuteranopia (green-blind)
#7A7E8A
Tritanopia (blue-blind)
#E40D58
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #d4238e;
/* rgb */ color: rgb(212, 35, 142);
/* oklch */ color: oklch(58.6% 0.225 350.1);
Tailwind
colors: {
  custom: {
    50: '#e775af',
    500: '#d4238e',
    950: '#000000',
  },
}
SCSS
$custom: #d4238e;
$custom-light: #e775af;
$custom-dark: #000000;
JSON
{
  "hex": "#d4238e",
  "rgb": {
    "r": 212,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 323.729,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.58558,
    "c": 0.2252,
    "h": 350.1
  },
  "luminance": 0.17152
}

Semantic roles & 50–950 ramp

primary
#D4238E
secondary
#7ED4A0
accent
#EE8139
background
#FEF7FA
surface
#FDEEF4
border
#D5C9CE
text
#170A10
muted
#857C7F

Preview Lab

Preview with #D4238E

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

Preview Lab → · Contrast checker → · Palette generator →

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