#EC7EF2#EC7EF2

#EC7EF2 is a light, vivid purple. Relative luminance 0.392; OKLCH L 75.6% C 0.195 H 325.4°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#EC7EF2
RGBrgb(236, 126, 242)
HSLhsl(297, 82%, 72%)
HSVhsv(297, 48%, 95%)
CMYKcmyk(2.5%, 47.9%, 0%, 5.1%)
CIE-LABlab(68.87, 58.46, -40.31)
CIE-LCHlch(68.87, 71.01, 325.41°)
OKLaboklab(75.58% 0.1604 -0.1108)
OKLCHoklch(75.58% 0.195 325.4)
XYZxyz(58.0786, 39.1683, 88.4882)
Luminance0.3916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7EF2 #84F27E
analogous
#B27EF2 #EC7EF2 #F27EBE
triadic
#EC7EF2 #F2EC7E #7EF2EC
tetradic
#EC7EF2 #F2B27E #84F27E #7EBEF2
square
#EC7EF2 #F2B27E #84F27E #7EBEF2
split-complementary
#EC7EF2 #BEF27E #7EF2B2
monochromatic
#D516DF #E446EC #EC7EF2 #F4B6F8 #FBE3FC

Accessibility & contrast

On white

2.38
#EC7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#EC7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC7EF2
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC7EF2#FFFFFF#000000##000000
##EC7EF21.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ec7ef2;
/* rgb */ color: rgb(236, 126, 242);
/* oklch */ color: oklch(75.6% 0.195 325.4);
Tailwind
colors: {
  custom: {
    50: '#f4a7f6',
    500: '#ec7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ec7ef2;
$custom-light: #f4a7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7ef2",
  "rgb": {
    "r": 236,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 296.897,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.75583,
    "c": 0.19493,
    "h": 325.4
  },
  "luminance": 0.39165
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #EC7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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