#EC87F2#EC87F2

#EC87F2 is a light, vivid purple. Relative luminance 0.416; OKLCH L 76.8% C 0.180 H 325.1°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#EC87F2
RGBrgb(236, 135, 242)
HSLhsl(297, 80%, 74%)
HSVhsv(297, 44%, 95%)
CMYKcmyk(2.5%, 44.2%, 0%, 5.1%)
CIE-LABlab(70.58, 54.02, -37.65)
CIE-LCHlch(70.58, 65.85, 325.13°)
OKLaboklab(76.85% 0.148 -0.1033)
OKLCHoklch(76.85% 0.181 325.1)
XYZxyz(59.2817, 41.5744, 88.8892)
Luminance0.4157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC87F2 #8DF287
analogous
#B787F2 #EC87F2 #F287C3
triadic
#EC87F2 #F2EC87 #87F2EC
tetradic
#EC87F2 #F2B787 #8DF287 #87C3F2
square
#EC87F2 #F2B787 #8DF287 #87C3F2
split-complementary
#EC87F2 #C3F287 #87F2B7
monochromatic
#DA19E6 #E350EC #EC87F2 #F5BEF8 #FBE3FC

Accessibility & contrast

On white

2.25
#EC87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#EC87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC87F2
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC87F2#FFFFFF#000000##000000
##EC87F21.002.259.319.31
#FFFFFF2.251.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA5F6
Deuteranopia (green-blind)
#98B1EF
Tritanopia (blue-blind)
#F193B1
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ec87f2;
/* rgb */ color: rgb(236, 135, 242);
/* oklch */ color: oklch(76.8% 0.180 325.1);
Tailwind
colors: {
  custom: {
    50: '#f4adf6',
    500: '#ec87f2',
    950: '#000000',
  },
}
SCSS
$custom: #ec87f2;
$custom-light: #f4adf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec87f2",
  "rgb": {
    "r": 236,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 296.636,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.76848,
    "c": 0.1805,
    "h": 325.1
  },
  "luminance": 0.41572
}

Semantic roles & 50–950 ramp

primary
#EC87F2
secondary
#D9F4D7
accent
#DD0915
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#171017
muted
#857F85

Preview Lab

Preview with #EC87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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