#EC8AEF#EC8AEF

#EC8AEF is a light, vivid purple. Relative luminance 0.422; OKLCH L 77.2% C 0.173 H 326.0°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#EC8AEF
RGBrgb(236, 138, 239)
HSLhsl(298, 76%, 74%)
HSVhsv(298, 42%, 94%)
CMYKcmyk(1.3%, 42.3%, 0%, 6.3%)
CIE-LABlab(71.04, 51.98, -35.29)
CIE-LCHlch(71.04, 62.83, 325.82°)
OKLaboklab(77.15% 0.1433 -0.0966)
OKLCHoklch(77.15% 0.173 326)
XYZxyz(59.2593, 42.2446, 86.6772)
Luminance0.4224 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8AEF #8DEF8A
analogous
#BA8AEF #EC8AEF #EF8AC0
triadic
#EC8AEF #EFEC8A #8AEFEC
tetradic
#EC8AEF #EFBA8A #8DEF8A #8AC0EF
square
#EC8AEF #EFBA8A #8DEF8A #8AC0EF
split-complementary
#EC8AEF #C0EF8A #8AEFBA
monochromatic
#DA1FE0 #E354E8 #EC8AEF #F5C0F6 #FBE4FB

Accessibility & contrast

On white

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

On black

9.45
#EC8AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8AEF
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8AEF#FFFFFF#000000##000000
##EC8AEF1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A6F3
Deuteranopia (green-blind)
#9BB2EC
Tritanopia (blue-blind)
#F194B1
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ec8aef;
/* rgb */ color: rgb(236, 138, 239);
/* oklch */ color: oklch(77.2% 0.173 326.0);
Tailwind
colors: {
  custom: {
    50: '#f4aef4',
    500: '#ec8aef',
    950: '#000000',
  },
}
SCSS
$custom: #ec8aef;
$custom-light: #f4aef4;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8aef",
  "rgb": {
    "r": 236,
    "g": 138,
    "b": 239
  },
  "hsl": {
    "h": 298.218,
    "s": 75.94,
    "l": 73.922
  },
  "oklch": {
    "l": 0.77153,
    "c": 0.17277,
    "h": 326
  },
  "luminance": 0.42242
}

Semantic roles & 50–950 ramp

primary
#EC8AEF
secondary
#D9F3D8
accent
#D80D13
background
#FFFAFE
surface
#FEF5FD
border
#D6CFD5
text
#171017
muted
#857F85

Preview Lab

Preview with #EC8AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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