#D12ED7#D12ED7

#D12ED7 is a light, highly saturated purple. Relative luminance 0.204; OKLCH L 62.3% C 0.260 H 326.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#D12ED7
RGBrgb(209, 46, 215)
HSLhsl(298, 68%, 51%)
HSVhsv(298, 79%, 84%)
CMYKcmyk(2.8%, 78.6%, 0%, 15.7%)
CIE-LABlab(52.31, 78.81, -51.61)
CIE-LCHlch(52.31, 94.21, 326.78°)
OKLaboklab(62.35% 0.2171 -0.1436)
OKLCHoklch(62.35% 0.26 326.5)
XYZxyz(39.5365, 20.4184, 66.1356)
Luminance0.2042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D12ED7 #34D72E
analogous
#7C2ED7 #D12ED7 #D72E88
triadic
#D12ED7 #D7D12E #2ED7D1
tetradic
#D12ED7 #D77C2E #34D72E #2E88D7
square
#D12ED7 #D77C2E #34D72E #2E88D7
split-complementary
#D12ED7 #88D72E #2ED77C
monochromatic
#711674 #A320A8 #D12ED7 #DC61E1 #E895EB

Accessibility & contrast

On white

4.13
#D12ED7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D12ED7#FFFFFF#000000##000000
##D12ED71.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#5A84D3
Tritanopia (blue-blind)
#D74E83
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d12ed7;
/* rgb */ color: rgb(209, 46, 215);
/* oklch */ color: oklch(62.3% 0.260 326.5);
Tailwind
colors: {
  custom: {
    50: '#e47be4',
    500: '#d12ed7',
    950: '#000000',
  },
}
SCSS
$custom: #d12ed7;
$custom-light: #e47be4;
$custom-dark: #000000;
JSON
{
  "hex": "#d12ed7",
  "rgb": {
    "r": 209,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 297.87,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.62349,
    "c": 0.26032,
    "h": 326.5
  },
  "luminance": 0.20416
}

Semantic roles & 50–950 ramp

primary
#D12ED7
secondary
#8ED68B
accent
#EB3D43
background
#FEF8FE
surface
#FDEFFC
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #D12ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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