#EC8CE2#EC8CE2

#EC8CE2 is a light, vivid purple. Relative luminance 0.421; OKLCH L 76.9% C 0.158 H 330.8°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#EC8CE2
RGBrgb(236, 140, 226)
HSLhsl(306, 72%, 74%)
HSVhsv(306, 41%, 93%)
CMYKcmyk(0%, 40.7%, 4.2%, 7.5%)
CIE-LABlab(70.93, 48.67, -28.33)
CIE-LCHlch(70.93, 56.31, 329.80°)
OKLaboklab(76.9% 0.1376 -0.0768)
OKLCHoklch(76.9% 0.158 330.8)
XYZxyz(57.6970, 42.0830, 77.0205)
Luminance0.4208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#EC8CE2 #8CEC96
analogous
#C68CEC #EC8CE2 #EC8CB2
triadic
#EC8CE2 #E2EC8C #8CE2EC
tetradic
#EC8CE2 #ECC68C #8CEC96 #8CB2EC
square
#EC8CE2 #ECC68C #8CEC96 #8CB2EC
split-complementary
#EC8CE2 #B2EC8C #8CECC6
monochromatic
#DA24C7 #E357D5 #EC8CE2 #F5C1EF #FBE5F8

Accessibility & contrast

On white

2.23
#EC8CE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#EC8CE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #EC8CE2
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##EC8CE2#FFFFFF#000000##000000
##EC8CE21.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A5E5
Deuteranopia (green-blind)
#A2B2DF
Tritanopia (blue-blind)
#F393AD
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ec8ce2;
/* rgb */ color: rgb(236, 140, 226);
/* oklch */ color: oklch(76.9% 0.158 330.8);
Tailwind
colors: {
  custom: {
    50: '#f4b0eb',
    500: '#ec8ce2',
    950: '#000000',
  },
}
SCSS
$custom: #ec8ce2;
$custom-light: #f4b0eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ec8ce2",
  "rgb": {
    "r": 236,
    "g": 140,
    "b": 226
  },
  "hsl": {
    "h": 306.25,
    "s": 71.642,
    "l": 73.725
  },
  "oklch": {
    "l": 0.76902,
    "c": 0.15763,
    "h": 330.8
  },
  "luminance": 0.4208
}

Semantic roles & 50–950 ramp

primary
#EC8CE2
secondary
#D9F2DB
accent
#D42612
background
#FFFBFE
surface
#FEF6FD
border
#D6D0D5
text
#171116
muted
#858084

Preview Lab

Preview with #EC8CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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