#EC8CF6#EC8CF6

#EC8CF6 is a light, vivid purple. Relative luminance 0.432; OKLCH L 77.8% C 0.176 H 323.6°. Best body text is #000000 at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#EC8CF6
RGBrgb(236, 140, 246)
HSLhsl(294, 85%, 76%)
HSVhsv(294, 43%, 96%)
CMYKcmyk(4.1%, 43.1%, 0%, 3.5%)
CIE-LABlab(71.72, 52.24, -38.06)
CIE-LCHlch(71.72, 64.63, 323.93°)
OKLaboklab(77.76% 0.1418 -0.1045)
OKLCHoklch(77.76% 0.176 323.6)
XYZxyz(60.6031, 43.2454, 92.3258)
Luminance0.4324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8CF6 #96F68C
analogous
#B78CF6 #EC8CF6 #F68CCB
triadic
#EC8CF6 #F6EC8C #8CF6EC
tetradic
#EC8CF6 #F6B78C #96F68C #8CCBF6
square
#EC8CF6 #F6B78C #96F68C #8CCBF6
split-complementary
#EC8CF6 #CBF68C #8CF6B7
monochromatic
#D91AED #E353F2 #EC8CF6 #F5C5FA #FAE3FD

Accessibility & contrast

On white

2.18
#EC8CF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.65
#EC8CF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8CF6
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8CF6#FFFFFF#000000##000000
##EC8CF61.002.189.659.65
#FFFFFF2.181.0021.0021.00
#0000009.6521.001.001.00
##0000009.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A8FA
Deuteranopia (green-blind)
#9AB4F3
Tritanopia (blue-blind)
#F098B6
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #ec8cf6;
/* rgb */ color: rgb(236, 140, 246);
/* oklch */ color: oklch(77.8% 0.176 323.6);
Tailwind
colors: {
  custom: {
    50: '#f4b0f9',
    500: '#ec8cf6',
    950: '#000000',
  },
}
SCSS
$custom: #ec8cf6;
$custom-light: #f4b0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8cf6",
  "rgb": {
    "r": 236,
    "g": 140,
    "b": 246
  },
  "hsl": {
    "h": 294.34,
    "s": 85.484,
    "l": 75.686
  },
  "oklch": {
    "l": 0.77756,
    "c": 0.17612,
    "h": 323.6
  },
  "luminance": 0.43243
}

Semantic roles & 50–950 ramp

primary
#EC8CF6
secondary
#D9F5D6
accent
#E20419
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #EC8CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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