#EC7DF2#EC7DF2

#EC7DF2 is a light, vivid purple. Relative luminance 0.389; OKLCH L 75.4% C 0.197 H 325.4°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#EC7DF2
RGBrgb(236, 125, 242)
HSLhsl(297, 82%, 72%)
HSVhsv(297, 48%, 95%)
CMYKcmyk(2.5%, 48.3%, 0%, 5.1%)
CIE-LABlab(68.69, 58.94, -40.60)
CIE-LCHlch(68.69, 71.57, 325.44°)
OKLaboklab(75.45% 0.1617 -0.1116)
OKLCHoklch(75.45% 0.197 325.4)
XYZxyz(57.9514, 38.9138, 88.4458)
Luminance0.3891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7DF2 #83F27D
analogous
#B27DF2 #EC7DF2 #F27DBE
triadic
#EC7DF2 #F2EC7D #7DF2EC
tetradic
#EC7DF2 #F2B27D #83F27D #7DBEF2
square
#EC7DF2 #F2B27D #83F27D #7DBEF2
split-complementary
#EC7DF2 #BEF27D #7DF2B2
monochromatic
#D416DE #E445EC #EC7DF2 #F4B5F8 #FBE3FC

Accessibility & contrast

On white

2.39
#EC7DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#EC7DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7DF2
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7DF2#FFFFFF#000000##000000
##EC7DF21.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF6
Deuteranopia (green-blind)
#91ACEF
Tritanopia (blue-blind)
#F18BAD
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #ec7df2;
/* rgb */ color: rgb(236, 125, 242);
/* oklch */ color: oklch(75.4% 0.197 325.4);
Tailwind
colors: {
  custom: {
    50: '#f4a6f6',
    500: '#ec7df2',
    950: '#000000',
  },
}
SCSS
$custom: #ec7df2;
$custom-light: #f4a6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7df2",
  "rgb": {
    "r": 236,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 296.923,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.75447,
    "c": 0.1965,
    "h": 325.4
  },
  "luminance": 0.38911
}

Semantic roles & 50–950 ramp

primary
#EC7DF2
secondary
#D8F4D7
accent
#DE0712
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#171017
muted
#857F85

Preview Lab

Preview with #EC7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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