#EC8EF5#EC8EF5

#EC8EF5 is a light, vivid purple. Relative luminance 0.438; OKLCH L 78.0% C 0.172 H 323.9°. Best body text is #000000 at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#EC8EF5
RGBrgb(236, 142, 245)
HSLhsl(295, 84%, 76%)
HSVhsv(295, 42%, 96%)
CMYKcmyk(3.7%, 42%, 0%, 3.9%)
CIE-LABlab(72.08, 51.04, -36.96)
CIE-LCHlch(72.08, 63.02, 324.09°)
OKLaboklab(78.01% 0.1388 -0.1013)
OKLCHoklch(78.01% 0.172 323.9)
XYZxyz(60.7449, 43.7740, 91.6180)
Luminance0.4377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8EF5 #97F58E
analogous
#B88EF5 #EC8EF5 #F58ECA
triadic
#EC8EF5 #F5EC8E #8EF5EC
tetradic
#EC8EF5 #F5B88E #97F58E #8ECAF5
square
#EC8EF5 #F5B88E #97F58E #8ECAF5
split-complementary
#EC8EF5 #CAF58E #8EF5B8
monochromatic
#D91EEB #E356F0 #EC8EF5 #F5C6FA #FAE3FD

Accessibility & contrast

On white

2.15
#EC8EF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.75
#EC8EF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8EF5
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8EF5#FFFFFF#000000##000000
##EC8EF51.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A9F9
Deuteranopia (green-blind)
#9CB5F2
Tritanopia (blue-blind)
#F099B6
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #ec8ef5;
/* rgb */ color: rgb(236, 142, 245);
/* oklch */ color: oklch(78.0% 0.172 323.9);
Tailwind
colors: {
  custom: {
    50: '#f4b1f8',
    500: '#ec8ef5',
    950: '#000000',
  },
}
SCSS
$custom: #ec8ef5;
$custom-light: #f4b1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8ef5",
  "rgb": {
    "r": 236,
    "g": 142,
    "b": 245
  },
  "hsl": {
    "h": 294.757,
    "s": 83.74,
    "l": 75.882
  },
  "oklch": {
    "l": 0.78009,
    "c": 0.17186,
    "h": 323.9
  },
  "luminance": 0.43771
}

Semantic roles & 50–950 ramp

primary
#EC8EF5
secondary
#D9F4D7
accent
#E00518
background
#FFFBFF
surface
#FEF6FF
border
#D6D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #EC8EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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