#EC87F7#EC87F7

#EC87F7 is a light, vivid purple. Relative luminance 0.419; OKLCH L 77.1% C 0.185 H 323.5°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#EC87F7
RGBrgb(236, 135, 247)
HSLhsl(294, 88%, 75%)
HSVhsv(294, 45%, 97%)
CMYKcmyk(4.5%, 45.3%, 0%, 3.1%)
CIE-LABlab(70.79, 54.94, -40.06)
CIE-LCHlch(70.79, 67.99, 323.90°)
OKLaboklab(77.07% 0.1489 -0.1102)
OKLCHoklch(77.07% 0.185 323.5)
XYZxyz(60.0429, 41.8788, 92.8983)
Luminance0.4188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC87F7 #92F787
analogous
#B487F7 #EC87F7 #F787CA
triadic
#EC87F7 #F7EC87 #87F7EC
tetradic
#EC87F7 #F7B487 #92F787 #87CAF7
square
#EC87F7 #F7B487 #92F787 #87CAF7
split-complementary
#EC87F7 #CAF787 #87F7B4
monochromatic
#DA14EF #E34EF3 #EC87F7 #F5C0FB #FAE2FD

Accessibility & contrast

On white

2.24
#EC87F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#EC87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC87F7
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC87F7#FFFFFF#000000##000000
##EC87F71.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A6FB
Deuteranopia (green-blind)
#96B1F4
Tritanopia (blue-blind)
#F094B4
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ec87f7;
/* rgb */ color: rgb(236, 135, 247);
/* oklch */ color: oklch(77.1% 0.185 323.5);
Tailwind
colors: {
  custom: {
    50: '#f4adfa',
    500: '#ec87f7',
    950: '#000000',
  },
}
SCSS
$custom: #ec87f7;
$custom-light: #f4adfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ec87f7",
  "rgb": {
    "r": 236,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 294.107,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.77074,
    "c": 0.18522,
    "h": 323.5
  },
  "luminance": 0.41876
}

Semantic roles & 50–950 ramp

primary
#EC87F7
secondary
#D9F5D6
accent
#E40118
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#171017
muted
#857F85

Preview Lab

Preview with #EC87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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