#EC5EF2#EC5EF2

#EC5EF2 is a light, highly saturated purple. Relative luminance 0.322; OKLCH L 71.7% C 0.241 H 326.1°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#EC5EF2
RGBrgb(236, 94, 242)
HSLhsl(298, 85%, 66%)
HSVhsv(298, 61%, 95%)
CMYKcmyk(2.5%, 61.2%, 0%, 5.1%)
CIE-LABlab(63.55, 72.80, -48.67)
CIE-LCHlch(63.55, 87.57, 326.24°)
OKLaboklab(71.68% 0.2004 -0.1347)
OKLCHoklch(71.68% 0.241 326.1)
XYZxyz(54.6207, 32.2524, 87.3356)
Luminance0.3225 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC5EF2 #64F25E
analogous
#A25EF2 #EC5EF2 #F25EAE
triadic
#EC5EF2 #F2EC5E #5EF2EC
tetradic
#EC5EF2 #F2A25E #64F25E #5EAEF2
square
#EC5EF2 #F2A25E #64F25E #5EAEF2
split-complementary
#EC5EF2 #AEF25E #5EF2A2
monochromatic
#BE10C6 #E525ED #EC5EF2 #F397F7 #F9CFFB

Accessibility & contrast

On white

2.82
#EC5EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#EC5EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC5EF2
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC5EF2#FFFFFF#000000##000000
##EC5EF21.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#478EF6
Deuteranopia (green-blind)
#7CA0EE
Tritanopia (blue-blind)
#F272A0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ec5ef2;
/* rgb */ color: rgb(236, 94, 242);
/* oklch */ color: oklch(71.7% 0.241 326.1);
Tailwind
colors: {
  custom: {
    50: '#f694f7',
    500: '#ec5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ec5ef2;
$custom-light: #f694f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ec5ef2",
  "rgb": {
    "r": 236,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 297.568,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.71681,
    "c": 0.24143,
    "h": 326.1
  },
  "luminance": 0.32249
}

Semantic roles & 50–950 ramp

primary
#EC5EF2
secondary
#BFEEBD
accent
#E2040D
background
#FFF9FF
surface
#FFF2FF
border
#D7CCD7
text
#180E17
muted
#867E85

Preview Lab

Preview with #EC5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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