#D51ECF#D51ECF

#D51ECF is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.7% C 0.267 H 329.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#D51ECF
RGBrgb(213, 30, 207)
HSLhsl(302, 75%, 48%)
HSVhsv(302, 86%, 84%)
CMYKcmyk(0%, 85.9%, 2.8%, 16.5%)
CIE-LABlab(51.36, 81.72, -48.49)
CIE-LCHlch(51.36, 95.03, 329.31°)
OKLaboklab(61.66% 0.2311 -0.1343)
OKLCHoklch(61.66% 0.267 329.8)
XYZxyz(39.1672, 19.5829, 60.7364)
Luminance0.1958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D51ECF #1ED524
analogous
#7F1ED5 #D51ECF #D51E74
triadic
#D51ECF #CFD51E #1ECFD5
tetradic
#D51ECF #D57F1E #1ED524 #1E74D5
square
#D51ECF #D57F1E #1ED524 #1E74D5
split-complementary
#D51ECF #74D51E #1ED57F
monochromatic
#6A0F67 #9F169B #D51ECF #E64BE1 #ED80EA

Accessibility & contrast

On white

4.27
#D51ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#D51ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D51ECF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D51ECF#FFFFFF#000000##000000
##D51ECF1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#5F82CB
Tritanopia (blue-blind)
#DD407C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d51ecf;
/* rgb */ color: rgb(213, 30, 207);
/* oklch */ color: oklch(61.7% 0.267 329.8);
Tailwind
colors: {
  custom: {
    50: '#e776de',
    500: '#d51ecf',
    950: '#000000',
  },
}
SCSS
$custom: #d51ecf;
$custom-light: #e776de;
$custom-dark: #000000;
JSON
{
  "hex": "#d51ecf",
  "rgb": {
    "r": 213,
    "g": 30,
    "b": 207
  },
  "hsl": {
    "h": 301.967,
    "s": 75.309,
    "l": 47.647
  },
  "oklch": {
    "l": 0.6166,
    "c": 0.26734,
    "h": 329.8
  },
  "luminance": 0.1958
}

Semantic roles & 50–950 ramp

primary
#D51ECF
secondary
#79D67C
accent
#F23C36
background
#FEF7FD
surface
#FDEEFB
border
#D5C9D4
text
#170A15
muted
#857C83

Preview Lab

Preview with #D51ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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