#EC7AEF#EC7AEF

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

Color values

HEX#EC7AEF
RGBrgb(236, 122, 239)
HSLhsl(298, 79%, 71%)
HSVhsv(298, 49%, 94%)
CMYKcmyk(1.3%, 49%, 0%, 6.3%)
CIE-LABlab(68.01, 59.85, -40.00)
CIE-LCHlch(68.01, 71.99, 326.24°)
OKLaboklab(74.9% 0.1653 -0.1099)
OKLCHoklch(74.9% 0.198 326.4)
XYZxyz(57.1305, 37.9870, 85.9676)
Luminance0.3798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC7AEF #7DEF7A
analogous
#B27AEF #EC7AEF #EF7AB7
triadic
#EC7AEF #EFEC7A #7AEFEC
tetradic
#EC7AEF #EFB27A #7DEF7A #7AB7EF
square
#EC7AEF #EFB27A #7DEF7A #7AB7EF
split-complementary
#EC7AEF #B7EF7A #7AEFB2
monochromatic
#D01AD5 #E443E8 #EC7AEF #F4B1F6 #FBE4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##EC7AEF#FFFFFF#000000##000000
##EC7AEF1.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)
#6E9CF3
Deuteranopia (green-blind)
#90ABEB
Tritanopia (blue-blind)
#F287AA
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ec7aef;
/* rgb */ color: rgb(236, 122, 239);
/* oklch */ color: oklch(74.9% 0.198 326.4);
Tailwind
colors: {
  custom: {
    50: '#f4a4f4',
    500: '#ec7aef',
    950: '#000000',
  },
}
SCSS
$custom: #ec7aef;
$custom-light: #f4a4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ec7aef",
  "rgb": {
    "r": 236,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 298.462,
    "s": 78.523,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74902,
    "c": 0.19849,
    "h": 326.4
  },
  "luminance": 0.37984
}

Semantic roles & 50–950 ramp

primary
#EC7AEF
secondary
#D3F2D3
accent
#DB0B10
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#171017
muted
#857F85

Preview Lab

Preview with #EC7AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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