#EC87F5#EC87F5

#EC87F5 is a light, vivid purple. Relative luminance 0.418; OKLCH L 77.0% C 0.183 H 324.1°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#EC87F5
RGBrgb(236, 135, 245)
HSLhsl(295, 85%, 75%)
HSVhsv(295, 45%, 96%)
CMYKcmyk(3.7%, 44.9%, 0%, 3.9%)
CIE-LABlab(70.70, 54.57, -39.10)
CIE-LCHlch(70.70, 67.13, 324.38°)
OKLaboklab(76.98% 0.1485 -0.1074)
OKLCHoklch(76.98% 0.183 324.1)
XYZxyz(59.7359, 41.7561, 91.2817)
Luminance0.4175 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC87F5 #90F587
analogous
#B587F5 #EC87F5 #F587C7
triadic
#EC87F5 #F5EC87 #87F5EC
tetradic
#EC87F5 #F5B587 #90F587 #87C7F5
square
#EC87F5 #F5B587 #90F587 #87C7F5
split-complementary
#EC87F5 #C7F587 #87F5B5
monochromatic
#DA16EC #E34FF0 #EC87F5 #F5BFFA #FBE3FD

Accessibility & contrast

On white

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

On black

9.35
#EC87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC87F5
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC87F5#FFFFFF#000000##000000
##EC87F51.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA5F9
Deuteranopia (green-blind)
#97B1F2
Tritanopia (blue-blind)
#F094B3
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ec87f5;
/* rgb */ color: rgb(236, 135, 245);
/* oklch */ color: oklch(77.0% 0.183 324.1);
Tailwind
colors: {
  custom: {
    50: '#f4adf9',
    500: '#ec87f5',
    950: '#000000',
  },
}
SCSS
$custom: #ec87f5;
$custom-light: #f4adf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ec87f5",
  "rgb": {
    "r": 236,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 295.091,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.76983,
    "c": 0.18332,
    "h": 324.1
  },
  "luminance": 0.41753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #EC87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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