#EC87F8#EC87F8

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

Color values

HEX#EC87F8
RGBrgb(236, 135, 248)
HSLhsl(294, 89%, 75%)
HSVhsv(294, 46%, 97%)
CMYKcmyk(4.8%, 45.6%, 0%, 2.7%)
CIE-LABlab(70.83, 55.12, -40.54)
CIE-LCHlch(70.83, 68.42, 323.67°)
OKLaboklab(77.12% 0.149 -0.1115)
OKLCHoklch(77.12% 0.186 323.2)
XYZxyz(60.1976, 41.9407, 93.7132)
Luminance0.4194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC87F8 #93F887
analogous
#B387F8 #EC87F8 #F887CC
triadic
#EC87F8 #F8EC87 #87F8EC
tetradic
#EC87F8 #F8B387 #93F887 #87CCF8
square
#EC87F8 #F8B387 #93F887 #87CCF8
split-complementary
#EC87F8 #CCF887 #87F8B3
monochromatic
#DA13F1 #E34DF5 #EC87F8 #F5C1FB #FAE2FD

Accessibility & contrast

On white

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

On black

9.39
#EC87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC87F8
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC87F8#FFFFFF#000000##000000
##EC87F81.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A6FC
Deuteranopia (green-blind)
#95B1F5
Tritanopia (blue-blind)
#EF94B4
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #ec87f8;
/* rgb */ color: rgb(236, 135, 248);
/* oklch */ color: oklch(77.1% 0.186 323.2);
Tailwind
colors: {
  custom: {
    50: '#f4adfb',
    500: '#ec87f8',
    950: '#000000',
  },
}
SCSS
$custom: #ec87f8;
$custom-light: #f4adfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ec87f8",
  "rgb": {
    "r": 236,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 293.628,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.7712,
    "c": 0.18616,
    "h": 323.2
  },
  "luminance": 0.41938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #EC87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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