#EC8EF2#EC8EF2

#EC8EF2 is a light, vivid purple. Relative luminance 0.436; OKLCH L 77.9% C 0.169 H 324.9°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#EC8EF2
RGBrgb(236, 142, 242)
HSLhsl(296, 79%, 75%)
HSVhsv(296, 41%, 95%)
CMYKcmyk(2.5%, 41.3%, 0%, 5.1%)
CIE-LABlab(71.96, 50.49, -35.51)
CIE-LCHlch(71.96, 61.73, 324.88°)
OKLaboklab(77.88% 0.1382 -0.0972)
OKLCHoklch(77.88% 0.169 324.9)
XYZxyz(60.2906, 43.5923, 89.2255)
Luminance0.4359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8EF2 #94F28E
analogous
#BA8EF2 #EC8EF2 #F28EC6
triadic
#EC8EF2 #F2EC8E #8EF2EC
tetradic
#EC8EF2 #F2BA8E #94F28E #8EC6F2
square
#EC8EF2 #F2BA8E #94F28E #8EC6F2
split-complementary
#EC8EF2 #C6F28E #8EF2BA
monochromatic
#DA20E5 #E357EC #EC8EF2 #F5C5F8 #FAE4FC

Accessibility & contrast

On white

2.16
#EC8EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.72
#EC8EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8EF2
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8EF2#FFFFFF#000000##000000
##EC8EF21.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A9F6
Deuteranopia (green-blind)
#9DB4EF
Tritanopia (blue-blind)
#F099B5
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #ec8ef2;
/* rgb */ color: rgb(236, 142, 242);
/* oklch */ color: oklch(77.9% 0.169 324.9);
Tailwind
colors: {
  custom: {
    50: '#f4b1f6',
    500: '#ec8ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ec8ef2;
$custom-light: #f4b1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8ef2",
  "rgb": {
    "r": 236,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 296.4,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.77878,
    "c": 0.16899,
    "h": 324.9
  },
  "luminance": 0.4359
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #EC8EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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