#EC5FE2#EC5FE2

#EC5FE2 is a light, highly saturated purple. Relative luminance 0.315; OKLCH L 71.0% C 0.227 H 330.5°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#EC5FE2
RGBrgb(236, 95, 226)
HSLhsl(304, 79%, 65%)
HSVhsv(304, 60%, 93%)
CMYKcmyk(0%, 59.7%, 4.2%, 7.5%)
CIE-LABlab(62.94, 69.77, -40.73)
CIE-LCHlch(62.94, 80.79, 329.72°)
OKLaboklab(70.99% 0.1979 -0.1118)
OKLCHoklch(70.99% 0.227 330.5)
XYZxyz(52.4115, 31.5119, 75.2587)
Luminance0.3151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC5FE2 #5FEC69
analogous
#AF5FEC #EC5FE2 #EC5F9C
triadic
#EC5FE2 #E2EC5F #5FE2EC
tetradic
#EC5FE2 #ECAF5F #5FEC69 #5F9CEC
square
#EC5FE2 #ECAF5F #5FEC69 #5F9CEC
split-complementary
#EC5FE2 #9CEC5F #5FECAF
monochromatic
#BA16AF #E628D8 #EC5FE2 #F296EC #F9CCF6

Accessibility & contrast

On white

2.88
#EC5FE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#EC5FE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC5FE2
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC5FE2#FFFFFF#000000##000000
##EC5FE21.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#568CE6
Deuteranopia (green-blind)
#859FDE
Tritanopia (blue-blind)
#F46D98
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ec5fe2;
/* rgb */ color: rgb(236, 95, 226);
/* oklch */ color: oklch(71.0% 0.227 330.5);
Tailwind
colors: {
  custom: {
    50: '#f594eb',
    500: '#ec5fe2',
    950: '#000000',
  },
}
SCSS
$custom: #ec5fe2;
$custom-light: #f594eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ec5fe2",
  "rgb": {
    "r": 236,
    "g": 95,
    "b": 226
  },
  "hsl": {
    "h": 304.255,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.70987,
    "c": 0.22732,
    "h": 330.5
  },
  "luminance": 0.31508
}

Semantic roles & 50–950 ramp

primary
#EC5FE2
secondary
#BBEBBF
accent
#DB190A
background
#FFF9FE
surface
#FFF2FD
border
#D7CCD5
text
#180E16
muted
#867E84

Preview Lab

Preview with #EC5FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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