#D242AB#D242AB

#D242AB is a mid, highly saturated pink. Relative luminance 0.205; OKLCH L 61.8% C 0.210 H 340.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#D242AB
RGBrgb(210, 66, 171)
HSLhsl(316, 62%, 54%)
HSVhsv(316, 69%, 82%)
CMYKcmyk(0%, 68.6%, 18.6%, 17.6%)
CIE-LABlab(52.44, 66.34, -25.94)
CIE-LCHlch(52.44, 71.23, 338.64°)
OKLaboklab(61.77% 0.1978 -0.0698)
OKLCHoklch(61.77% 0.21 340.5)
XYZxyz(35.8782, 20.5418, 40.5956)
Luminance0.2054 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D242AB #42D269
analogous
#B142D2 #D242AB #D24263
triadic
#D242AB #ABD242 #42ABD2
tetradic
#D242AB #D2B142 #42D269 #4263D2
square
#D242AB #D2B142 #42D269 #4263D2
split-complementary
#D242AB #63D242 #42D2B1
monochromatic
#7C1E62 #AD298A #D242AB #DE73C1 #EAA5D7

Accessibility & contrast

On white

4.11
#D242AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#D242AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D242AB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D242AB#FFFFFF#000000##000000
##D242AB1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6EAE
Deuteranopia (green-blind)
#7985A8
Tritanopia (blue-blind)
#DE4571
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d242ab;
/* rgb */ color: rgb(210, 66, 171);
/* oklch */ color: oklch(61.8% 0.210 340.5);
Tailwind
colors: {
  custom: {
    50: '#e482c4',
    500: '#d242ab',
    950: '#000000',
  },
}
SCSS
$custom: #d242ab;
$custom-light: #e482c4;
$custom-dark: #000000;
JSON
{
  "hex": "#d242ab",
  "rgb": {
    "r": 210,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 316.25,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.6177,
    "c": 0.20975,
    "h": 340.5
  },
  "luminance": 0.20538
}

Semantic roles & 50–950 ramp

primary
#D242AB
secondary
#99D7AA
accent
#E56F43
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D242AB

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

Preview Lab → · Contrast checker → · Palette generator →

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