#EC7DE2#EC7DE2

#EC7DE2 is a light, vivid purple. Relative luminance 0.380; OKLCH L 74.7% C 0.182 H 330.6°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#EC7DE2
RGBrgb(236, 125, 226)
HSLhsl(305, 74%, 71%)
HSVhsv(305, 47%, 93%)
CMYKcmyk(0%, 47%, 4.2%, 7.5%)
CIE-LABlab(68.02, 56.16, -32.82)
CIE-LCHlch(68.02, 65.04, 329.70°)
OKLaboklab(74.73% 0.159 -0.0894)
OKLCHoklch(74.73% 0.182 330.6)
XYZxyz(55.6526, 37.9943, 76.3391)
Luminance0.3799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7DE2 #7DEC87
analogous
#BE7DEC #EC7DE2 #EC7DAA
triadic
#EC7DE2 #E2EC7D #7DE2EC
tetradic
#EC7DE2 #ECBE7D #7DEC87 #7DAAEC
square
#EC7DE2 #ECBE7D #7DEC87 #7DAAEC
split-complementary
#EC7DE2 #AAEC7D #7DECBE
monochromatic
#D01EC0 #E448D6 #EC7DE2 #F4B2EE #FBE4F9

Accessibility & contrast

On white

2.44
#EC7DE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#EC7DE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7DE2
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7DE2#FFFFFF#000000##000000
##EC7DE21.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#789CE5
Deuteranopia (green-blind)
#97ABDF
Tritanopia (blue-blind)
#F486A5
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ec7de2;
/* rgb */ color: rgb(236, 125, 226);
/* oklch */ color: oklch(74.7% 0.182 330.6);
Tailwind
colors: {
  custom: {
    50: '#f4a6eb',
    500: '#ec7de2',
    950: '#000000',
  },
}
SCSS
$custom: #ec7de2;
$custom-light: #f4a6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7de2",
  "rgb": {
    "r": 236,
    "g": 125,
    "b": 226
  },
  "hsl": {
    "h": 305.405,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74728,
    "c": 0.1824,
    "h": 330.6
  },
  "luminance": 0.37991
}

Semantic roles & 50–950 ramp

primary
#EC7DE2
secondary
#D3F1D6
accent
#D7210F
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#171016
muted
#857F84

Preview Lab

Preview with #EC7DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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