#D242A7#D242A7

#D242A7 is a mid, highly saturated pink. Relative luminance 0.204; OKLCH L 61.6% C 0.207 H 342.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#D242A7
RGBrgb(210, 66, 167)
HSLhsl(318, 62%, 54%)
HSVhsv(318, 69%, 82%)
CMYKcmyk(0%, 68.6%, 20.5%, 17.6%)
CIE-LABlab(52.28, 65.79, -23.85)
CIE-LCHlch(52.28, 69.98, 340.07°)
OKLaboklab(61.59% 0.1971 -0.064)
OKLCHoklch(61.59% 0.207 342)
XYZxyz(35.5027, 20.3916, 38.6179)
Luminance0.2039 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D242A7 #42D26D
analogous
#B542D2 #D242A7 #D2425F
triadic
#D242A7 #A7D242 #42A7D2
tetradic
#D242A7 #D2B542 #42D26D #425FD2
square
#D242A7 #D2B542 #42D26D #425FD2
split-complementary
#D242A7 #5FD242 #42D2B5
monochromatic
#7C1E60 #AD2986 #D242A7 #DE73BE #EAA5D5

Accessibility & contrast

On white

4.14
#D242A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#D242A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D242A7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D242A7#FFFFFF#000000##000000
##D242A71.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6EAA
Deuteranopia (green-blind)
#7A85A4
Tritanopia (blue-blind)
#DF446F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d242a7;
/* rgb */ color: rgb(210, 66, 167);
/* oklch */ color: oklch(61.6% 0.207 342.0);
Tailwind
colors: {
  custom: {
    50: '#e481c1',
    500: '#d242a7',
    950: '#000000',
  },
}
SCSS
$custom: #d242a7;
$custom-light: #e481c1;
$custom-dark: #000000;
JSON
{
  "hex": "#d242a7",
  "rgb": {
    "r": 210,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 317.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61594,
    "c": 0.2072,
    "h": 342
  },
  "luminance": 0.20388
}

Semantic roles & 50–950 ramp

primary
#D242A7
secondary
#99D7AC
accent
#E57343
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D242A7

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

Preview Lab → · Contrast checker → · Palette generator →

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