#DC2FAF#DC2FAF

#DC2FAF is a mid, highly saturated pink. Relative luminance 0.203; OKLCH L 62.0% C 0.238 H 341.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#DC2FAF
RGBrgb(220, 47, 175)
HSLhsl(316, 71%, 52%)
HSVhsv(316, 79%, 86%)
CMYKcmyk(0%, 78.6%, 20.5%, 13.7%)
CIE-LABlab(52.23, 75.13, -28.48)
CIE-LCHlch(52.23, 80.35, 339.24°)
OKLaboklab(61.99% 0.2255 -0.0768)
OKLCHoklch(61.99% 0.238 341.2)
XYZxyz(38.2709, 20.3478, 42.4612)
Luminance0.2034 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DC2FAF #2FDC5C
analogous
#B32FDC #DC2FAF #DC2F59
triadic
#DC2FAF #AFDC2F #2FAFDC
tetradic
#DC2FAF #DCB32F #2FDC5C #2F59DC
square
#DC2FAF #DCB32F #2FDC5C #2F59DC
split-complementary
#DC2FAF #59DC2F #2FDCB3
monochromatic
#7C1561 #B01E8A #DC2FAF #E563C3 #EE98D7

Accessibility & contrast

On white

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

On black

5.07
#DC2FAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DC2FAF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DC2FAF#FFFFFF#000000##000000
##DC2FAF1.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#406BB2
Deuteranopia (green-blind)
#7986AB
Tritanopia (blue-blind)
#EA336D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #dc2faf;
/* rgb */ color: rgb(220, 47, 175);
/* oklch */ color: oklch(62.0% 0.238 341.2);
Tailwind
colors: {
  custom: {
    50: '#ec7bc7',
    500: '#dc2faf',
    950: '#000000',
  },
}
SCSS
$custom: #dc2faf;
$custom-light: #ec7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#dc2faf",
  "rgb": {
    "r": 220,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 315.607,
    "s": 71.193,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61987,
    "c": 0.23817,
    "h": 341.2
  },
  "luminance": 0.20344
}

Semantic roles & 50–950 ramp

primary
#DC2FAF
secondary
#8ED9A1
accent
#EE693A
background
#FFF8FC
surface
#FEEFF8
border
#D6CAD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #DC2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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