#EC8AE2#EC8AE2

#EC8AE2 is a light, vivid purple. Relative luminance 0.415; OKLCH L 76.6% C 0.161 H 330.8°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#EC8AE2
RGBrgb(236, 138, 226)
HSLhsl(306, 72%, 73%)
HSVhsv(306, 42%, 93%)
CMYKcmyk(0%, 41.5%, 4.2%, 7.5%)
CIE-LABlab(70.53, 49.69, -28.94)
CIE-LCHlch(70.53, 57.50, 329.78°)
OKLaboklab(76.6% 0.1405 -0.0785)
OKLCHoklch(76.6% 0.161 330.8)
XYZxyz(57.4074, 41.5038, 76.9240)
Luminance0.4150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8AE2 #8AEC94
analogous
#C58AEC #EC8AE2 #EC8AB1
triadic
#EC8AE2 #E2EC8A #8AE2EC
tetradic
#EC8AE2 #ECC58A #8AEC94 #8AB1EC
square
#EC8AE2 #ECC58A #8AEC94 #8AB1EC
split-complementary
#EC8AE2 #B1EC8A #8AECC5
monochromatic
#D823C6 #E355D5 #EC8AE2 #F5BFEF #FBE5F8

Accessibility & contrast

On white

2.26
#EC8AE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#EC8AE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8AE2
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8AE2#FFFFFF#000000##000000
##EC8AE21.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A4E5
Deuteranopia (green-blind)
#A0B1DF
Tritanopia (blue-blind)
#F391AC
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #ec8ae2;
/* rgb */ color: rgb(236, 138, 226);
/* oklch */ color: oklch(76.6% 0.161 330.8);
Tailwind
colors: {
  custom: {
    50: '#f4aeeb',
    500: '#ec8ae2',
    950: '#000000',
  },
}
SCSS
$custom: #ec8ae2;
$custom-light: #f4aeeb;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8ae2",
  "rgb": {
    "r": 236,
    "g": 138,
    "b": 226
  },
  "hsl": {
    "h": 306.122,
    "s": 72.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.76602,
    "c": 0.16099,
    "h": 330.8
  },
  "luminance": 0.41501
}

Semantic roles & 50–950 ramp

primary
#EC8AE2
secondary
#D9F2DB
accent
#D42511
background
#FFFAFE
surface
#FEF5FD
border
#D6CFD5
text
#171016
muted
#857F84

Preview Lab

Preview with #EC8AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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