#EC87F1#EC87F1

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

Color values

HEX#EC87F1
RGBrgb(236, 135, 241)
HSLhsl(297, 79%, 74%)
HSVhsv(297, 44%, 95%)
CMYKcmyk(2.1%, 44%, 0%, 5.5%)
CIE-LABlab(70.53, 53.84, -37.17)
CIE-LCHlch(70.53, 65.43, 325.38°)
OKLaboklab(76.8% 0.1479 -0.1019)
OKLCHoklch(76.8% 0.18 325.4)
XYZxyz(59.1319, 41.5144, 88.1004)
Luminance0.4151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC87F1 #8CF187
analogous
#B787F1 #EC87F1 #F187C1
triadic
#EC87F1 #F1EC87 #87F1EC
tetradic
#EC87F1 #F1B787 #8CF187 #87C1F1
square
#EC87F1 #F1B787 #8CF187 #87C1F1
split-complementary
#EC87F1 #C1F187 #87F1B7
monochromatic
#DA1AE3 #E350EB #EC87F1 #F5BEF7 #FBE4FC

Accessibility & contrast

On white

2.26
#EC87F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#EC87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC87F1
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC87F1#FFFFFF#000000##000000
##EC87F11.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA5F5
Deuteranopia (green-blind)
#98B1EE
Tritanopia (blue-blind)
#F192B1
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #ec87f1;
/* rgb */ color: rgb(236, 135, 241);
/* oklch */ color: oklch(76.8% 0.180 325.4);
Tailwind
colors: {
  custom: {
    50: '#f4adf6',
    500: '#ec87f1',
    950: '#000000',
  },
}
SCSS
$custom: #ec87f1;
$custom-light: #f4adf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec87f1",
  "rgb": {
    "r": 236,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 297.17,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.76804,
    "c": 0.17956,
    "h": 325.4
  },
  "luminance": 0.41512
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #EC87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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