#D4238C#D4238C

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

Color values

HEX#D4238C
RGBrgb(212, 35, 140)
HSLhsl(324, 72%, 48%)
HSVhsv(324, 83%, 83%)
CMYKcmyk(0%, 83.5%, 34%, 16.9%)
CIE-LABlab(48.38, 72.09, -13.70)
CIE-LCHlch(48.38, 73.38, 349.24°)
OKLaboklab(58.48% 0.2214 -0.0356)
OKLCHoklch(58.48% 0.224 350.9)
XYZxyz(32.4881, 17.0966, 26.3950)
Luminance0.1709 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4238C #23D46B
analogous
#C323D4 #D4238C #D42333
triadic
#D4238C #8CD423 #238CD4
tetradic
#D4238C #D4C323 #23D46B #2333D4
square
#D4238C #D4C323 #23D46B #2333D4
split-complementary
#D4238C #33D423 #23D4C3
monochromatic
#6B1247 #9F1A69 #D4238C #E252A8 #EB86C2

Accessibility & contrast

On white

4.75
#D4238C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#D4238C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #D4238C
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4238C#FFFFFF#000000##FFFFFF
##D4238C1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485F8E
Deuteranopia (green-blind)
#7B7E88
Tritanopia (blue-blind)
#E40957
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #d4238c;
/* rgb */ color: rgb(212, 35, 140);
/* oklch */ color: oklch(58.5% 0.224 350.9);
Tailwind
colors: {
  custom: {
    50: '#e775ad',
    500: '#d4238c',
    950: '#000000',
  },
}
SCSS
$custom: #d4238c;
$custom-light: #e775ad;
$custom-dark: #000000;
JSON
{
  "hex": "#d4238c",
  "rgb": {
    "r": 212,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 324.407,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.5848,
    "c": 0.22427,
    "h": 350.9
  },
  "luminance": 0.17093
}

Semantic roles & 50–950 ramp

primary
#D4238C
secondary
#7ED4A1
accent
#EE8339
background
#FEF7FA
surface
#FDEEF4
border
#D5C9CE
text
#170A10
muted
#857C7F

Preview Lab

Preview with #D4238C

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

Preview Lab → · Contrast checker → · Palette generator →

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