#EC8DF2#EC8DF2

#EC8DF2 is a light, vivid purple. Relative luminance 0.433; OKLCH L 77.7% C 0.171 H 324.9°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#EC8DF2
RGBrgb(236, 141, 242)
HSLhsl(296, 80%, 75%)
HSVhsv(296, 42%, 95%)
CMYKcmyk(2.5%, 41.7%, 0%, 5.1%)
CIE-LABlab(71.76, 51.00, -35.82)
CIE-LCHlch(71.76, 62.32, 324.92°)
OKLaboklab(77.73% 0.1396 -0.0981)
OKLCHoklch(77.73% 0.171 324.9)
XYZxyz(60.1425, 43.2960, 89.1762)
Luminance0.4329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8DF2 #93F28D
analogous
#BA8DF2 #EC8DF2 #F28DC5
triadic
#EC8DF2 #F2EC8D #8DF2EC
tetradic
#EC8DF2 #F2BA8D #93F28D #8DC5F2
square
#EC8DF2 #F2BA8D #93F28D #8DC5F2
split-complementary
#EC8DF2 #C5F28D #8DF2BA
monochromatic
#DA1FE5 #E356EC #EC8DF2 #F5C4F8 #FAE4FC

Accessibility & contrast

On white

2.17
#EC8DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#EC8DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8DF2
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8DF2#FFFFFF#000000##000000
##EC8DF21.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A8F6
Deuteranopia (green-blind)
#9DB4EF
Tritanopia (blue-blind)
#F098B4
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #ec8df2;
/* rgb */ color: rgb(236, 141, 242);
/* oklch */ color: oklch(77.7% 0.171 324.9);
Tailwind
colors: {
  custom: {
    50: '#f4b0f6',
    500: '#ec8df2',
    950: '#000000',
  },
}
SCSS
$custom: #ec8df2;
$custom-light: #f4b0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8df2",
  "rgb": {
    "r": 236,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 296.436,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.77728,
    "c": 0.17064,
    "h": 324.9
  },
  "luminance": 0.43293
}

Semantic roles & 50–950 ramp

primary
#EC8DF2
secondary
#D9F4D7
accent
#DC0A16
background
#FFFBFF
surface
#FEF6FE
border
#D6D0D6
text
#171117
muted
#858085

Preview Lab

Preview with #EC8DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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