#EC87FF#EC87FF

#EC87FF is a light, vivid purple. Relative luminance 0.424; OKLCH L 77.4% C 0.193 H 321.1°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#EC87FF
RGBrgb(236, 135, 255)
HSLhsl(291, 100%, 76%)
HSVhsv(291, 47%, 100%)
CMYKcmyk(7.5%, 47.1%, 0%, 0%)
CIE-LABlab(71.13, 56.42, -43.88)
CIE-LCHlch(71.13, 71.48, 322.13°)
OKLaboklab(77.45% 0.1501 -0.1211)
OKLCHoklch(77.45% 0.193 321.1)
XYZxyz(61.3039, 42.3833, 99.5399)
Luminance0.4238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC87FF #9AFF87
analogous
#B087FF #EC87FF #FF87D6
triadic
#EC87FF #FFEC87 #87FFEC
tetradic
#EC87FF #FFB087 #9AFF87 #87D6FF
square
#EC87FF #FFB087 #9AFF87 #87D6FF
split-complementary
#EC87FF #D6FF87 #87FFB0
monochromatic
#D90DFF #E24AFF #EC87FF #F6C4FF #FAE0FF

Accessibility & contrast

On white

2.22
#EC87FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#EC87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC87FF
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC87FF#FFFFFF#000000##000000
##EC87FF1.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A7FF
Deuteranopia (green-blind)
#92B2FC
Tritanopia (blue-blind)
#EE97B7
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ec87ff;
/* rgb */ color: rgb(236, 135, 255);
/* oklch */ color: oklch(77.4% 0.193 321.1);
Tailwind
colors: {
  custom: {
    50: '#f4adff',
    500: '#ec87ff',
    950: '#000000',
  },
}
SCSS
$custom: #ec87ff;
$custom-light: #f4adff;
$custom-dark: #000000;
JSON
{
  "hex": "#ec87ff",
  "rgb": {
    "r": 236,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 290.5,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.77446,
    "c": 0.19292,
    "h": 321.1
  },
  "luminance": 0.42381
}

Semantic roles & 50–950 ramp

primary
#EC87FF
secondary
#D9F7D4
accent
#E60024
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#171018
muted
#857F86

Preview Lab

Preview with #EC87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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