#EC7DEC#EC7DEC

#EC7DEC is a light, vivid purple. Relative luminance 0.386; OKLCH L 75.2% C 0.191 H 327.3°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#EC7DEC
RGBrgb(236, 125, 236)
HSLhsl(300, 74%, 71%)
HSVhsv(300, 47%, 93%)
CMYKcmyk(0%, 47%, 0%, 7.5%)
CIE-LABlab(68.43, 57.88, -37.70)
CIE-LCHlch(68.43, 69.07, 326.92°)
OKLaboklab(75.17% 0.1608 -0.1033)
OKLCHoklch(75.17% 0.191 327.3)
XYZxyz(57.0650, 38.5593, 83.7775)
Luminance0.3856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7DEC #7DEC7D
analogous
#B47DEC #EC7DEC #EC7DB4
triadic
#EC7DEC #ECEC7D #7DECEC
tetradic
#EC7DEC #ECB47D #7DEC7D #7DB4EC
square
#EC7DEC #ECB47D #7DEC7D #7DB4EC
split-complementary
#EC7DEC #B4EC7D #7DECB4
monochromatic
#D01ED0 #E448E4 #EC7DEC #F4B2F4 #FBE4FB

Accessibility & contrast

On white

2.41
#EC7DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#EC7DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7DEC
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7DEC#FFFFFF#000000##000000
##EC7DEC1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#739EF0
Deuteranopia (green-blind)
#93ACE9
Tritanopia (blue-blind)
#F289AA
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ec7dec;
/* rgb */ color: rgb(236, 125, 236);
/* oklch */ color: oklch(75.2% 0.191 327.3);
Tailwind
colors: {
  custom: {
    50: '#f4a6f2',
    500: '#ec7dec',
    950: '#000000',
  },
}
SCSS
$custom: #ec7dec;
$custom-light: #f4a6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7dec",
  "rgb": {
    "r": 236,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 300,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.75171,
    "c": 0.1911,
    "h": 327.3
  },
  "luminance": 0.38556
}

Semantic roles & 50–950 ramp

primary
#EC7DEC
secondary
#D3F1D3
accent
#D70F0F
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#171017
muted
#857F85

Preview Lab

Preview with #EC7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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